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

In Corey Schafer's Programming Terms: Mutable vs Immutable, at 3:06, he selected multiple lines and commented them out in PyCharm all in one action.

What is this action? Is it a built-in shortcut in PyCharm that I can use or configure myself?

0

3 Answers

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

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

0

Is depends on you're 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 you're favorite text editor search in google : YourTextEditor shortcuts

This heavily depends on where you're writing your python code. If you're writing it in Notepad, there won't 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.

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like