What is the keyboard shortcut to comment text in Pycharm?
When I use ctrl /, I get:
CodePudding user response:
Go to your PyCharm settings (
ctrlalts) and locate theKeymapon the left sidebar.Look up
commentusing the search bar on the top right, and look at the shortcut forComment with Line Comment.Change it to whatever you'd like, and see if it works.
CodePudding user response:
line comment is
//comment here
multiple line comment is
/* comment
here
*/
CodePudding user response:
It is collapsing and expanding code block. Try // for single-line comments Or /* For multiple line comments */

