Other Extensions

Mar 28, 2012 at 8:03 PM

I use IronPython for embedded scripting in WinForms Application. To differentiate it from normal python files, we use a custom extension for such files. Is there a way to register these files with Python Tools so that they can be treated by VS same as py files?

Mar 28, 2012 at 8:11 PM

You can probably go to Tools->Options->Text Editor->File Extension, type in your custom extension, and then choose Python Editor in the editor drop down, and select Add.

I say probably because there are some places where we look specifically for .py files so you might run into some places where it won't work as expected.  If you run into any issues there let us know and we can get them fixed.


Mar 28, 2012 at 8:40 PM

Thanks. That worked! So far no errors. Will post if I come across any anomalies