This project has moved and is read-only. For the latest updates, please go here.

Add further extensions to be recognized as Python (.pyp)

Mar 20, 2013 at 12:32 PM
Edited Mar 20, 2013 at 12:33 PM

is there a way to add another extension to the files being recognized as Python? The application I'm programming for uses the .pyp extension to recognize Python plugins internally, and requires that. Unfortunately PTVS does not recognize these .pyp as Python, so.... how could I add this?


Edit: this is the 2.0 Alpha on VS2012
Mar 20, 2013 at 4:43 PM
If you open Tools->Options->Text Editor->File Extension then you'll reach a section where you can add a new extension. If you enter "pyp" and select "Python Editor" then those files should open with our editor.

I haven't checked whether the analysis is complete, since we do have a few codepaths that explicitly check for ".py" or ".pyw", so you may not get full IntelliSense in these files. If you don't, create an issue and we'll get it fixed.

And if you want to double-click the files in Explorer and have Visual Studio open them, you can do that through the Open With command (right-click the file and select "Choose default program").
Mar 21, 2013 at 6:15 PM
Ah, nice, so easy... works fine now.