How to make shortcut work for non python files in Pycharm

Answered

The software program that am working on is using configuration files with .conf extension. I usually edit these files within pycharm itself. Any of the lines in the configuration files can be commented out the hash sign similar to that in Python.

However, in pycharm if I'm editing a non-Python file, I cannot use the keyboard shortcut like Ctrl + / in order to comment out a line by automatically prepending the # in front of it.

Is there a way that I can enable this kind of keyboard shortcut for non-Python files also in pycharm?

Thank you for any inputs

0

Please sign in to leave a comment.