python – What is the shortcut key to comment multiple lines using PyCharm IDE?

python – What is the shortcut key to comment multiple lines using PyCharm IDE?

This is a setting you can change and define in Settings.

The default is with Ctrl+/ for Windows, or Cmd+/ for Mac.

Is depends on youre text editor , but probably all text editor use (ctrl + /) just highlight all the code you need to comments and use the shortcut , to know what shortcut using in youre favorite text editor search in google : YourTextEditor shortcuts

python – What is the shortcut key to comment multiple lines using PyCharm IDE?

This heavily depends on where youre writing your python code. If youre writing it in Notepad, there wont be a shortcut for commenting a line.

However, if you use an IDE, you will probably have such capability alongside the ability to change the shortcut.
Just search Google for keyboard shortcuts for your preferred IDE.
Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *