view .txt as .py

In Sublime Text 3, one can view a file with different syntax.

For example, even it is a .txt file, I can change "View -> By Syntax --> Python", and Sublime Text with display the file using the python syntax.

Could we do this with PyCharm? Really important for me... 

1 comment

Not currently possible, please vote for https://youtrack.jetbrains.com/issue/IDEA-113835 and linked tickets.

Note that you can assign <your file name>.txt pattern to Python file type in Settings | Editor | File Types to get is highlighted as a .py file

0

Please sign in to leave a comment.