PTVS icon indicating copy to clipboard operation
PTVS copied to clipboard

VS2022 no longer allows mapping file extensions to the Python editor

Open vsfeedback opened this issue 3 years ago • 7 comments

This issue has been moved from a ticket on Developer Community.


[regression] [worked-in:16.11] Visual Studio 2019 supported mapping custom file extensions to the Python editor using the following process:

  1. Go to Tools > Options > Text Editor > File Extension.
  2. Enter extension name (e.g. "sc").
  3. Choose Editor drop down and look for "Python Editor".

I no longer am able to find "Python Editor" in the list of file extensions in VS2022 17.0.1. I confirmed that I have the Python language feature installed.

VS2019 (16.11.5) with Python editor available:

! [vs2019_with_python_editor.png] (https://aka.ms/dc/image?name=B3b0759e28f294d60a2579033a1b3b198637729302363427708_vs2019_with_python_editor.png&tid=3b0759e28f294d60a2579033a1b3b198637729302363427708)

VS2022 (17.0.1) without Python editor available:

! [vs2022_no_python_editor.png] (https://aka.ms/dc/image?name=Bc4ddcc389a86483981dd9ca1af4da1ee637729302793922862_vs2022_no_python_editor.png&tid=c4ddcc389a86483981dd9ca1af4da1ee637729302793922862)

VS2022 (17.0.1) Python features I have installed:

! [vs2022_python_installed.png] (https://aka.ms/dc/image?name=B83aea3b9f0994416a29547dd31c42b48637729303011000489_vs2022_python_installed.png&tid=83aea3b9f0994416a29547dd31c42b48637729303011000489)


Original Comments

(no comments)


Original Solutions

(no solutions)

vsfeedback avatar Nov 19 '21 18:11 vsfeedback

I was the one who filed this in the Visual Studio feedback forum. Please let me know if you have any questions. This is really hurting my Visual Studio development experience because SCons uses .sc files that should be highlighted with Python syntax.

grossag avatar Nov 22 '21 15:11 grossag

Me too. This isn't the only issue on VS 2022 compared to 2019. Getting pretty unusable.

Any progress on this?

veekayinhk avatar Jan 12 '22 13:01 veekayinhk

We're in June and I still can't do this. I consider VS 2022 unusable until I can easily use python like I did in VS 2019.

greenearrow avatar Jun 17 '22 16:06 greenearrow

December 2022 here, and still no option for Python Editor.

BeigeAlert avatar Dec 12 '22 20:12 BeigeAlert

I was looking for that feature because I am using files that uses python syntax but did not find it after installing all the features of Python, now I now I was not crazy for not finding it, is it a bug? Can be installed by hand in someway?

juanpaexpedite avatar Dec 26 '22 05:12 juanpaexpedite

Is there any news on this issue? Using TextMate Grammars to get python syntax highlighting for custom file extensions (like ArcGIS Python Toolboxes *.pyt) is quite cumbersome and only a half-baked solution.

maaattes avatar Apr 14 '23 14:04 maaattes

Is there any news on this issue? Using TextMate Grammars to get python syntax highlighting for custom file extensions (like ArcGIS Python Toolboxes *.pyt) is quite cumbersome and only a half-baked solution.

I gave up and switched to using VS Code for python...

veekayinhk avatar Apr 14 '23 16:04 veekayinhk