PTVS
PTVS copied to clipboard
VS2022 no longer allows mapping file extensions to the Python editor
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:
- Go to Tools > Options > Text Editor > File Extension.
- Enter extension name (e.g. "sc").
- 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)
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.
Me too. This isn't the only issue on VS 2022 compared to 2019. Getting pretty unusable.
Any progress on this?
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.
December 2022 here, and still no option for Python Editor.
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?
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.
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...