PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, June 29, 2022

[FIXED] How can I use the shortcut ctrl + # to comment multiple lines of code in Python or C++ using Vscode?

 June 29, 2022     comments, python, visual-studio-code     No comments   

Issue

When I use Jupyter Notebook inside the browser or inside Google Colab I can comment multiple lines of code by selecting them and pressing crtl + #. This also sometimes worked in Visual Code and not only for Python but also for C++ (of course then each line began with a //). However, I have no idea what enabled this behavior and how to reproduce it, it was very convenient. If you have any idea how to enable this, I would very much appreciate your help.


Solution

In VS Code you can use Ctrl+/ for comment multiple lines and Alt+Shift+A for block comment .



Answered By - Bibhav
Answer Checked By - Marie Seifert (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing