This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Vscode

How to Comment Multiple Lines in VS Code

Updated on:
April 10, 2026
By:
Madhav Bhandari

‍

Here is a step-by-step guide on how to comment multiple lines in VS Code. Note that different programming languages use different symbols to indicate comments:

  1. To comment multiple lines in VS Code, go to the code editor where the syntax-highlighted code appears.
  2. Highlight multiple lines in the code editor by dragging your cursor. Then press Shift + Option + A on Mac, or Shift + Alt + A on Windows to comment those lines.
  3. Once done, the syntax-highlighted code will turn green, indicating a comment has been placed for the computer to ignore, and the presence of /* ... */ shows that it is a multi-line comment (for Javascript code).
Your product deserves an interactive demo
Start free
Similar Articles
Vscode

How to Compare Two Python Files in VS Code

Madhav Bhandari
Director of Marketing @ Storylane
Vscode

How to Save VS Code File as PDF

Madhav Bhandari
Director of Marketing @ Storylane
Vscode

How to Use NPM in VS Code

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Buyer Hub
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Events & webinars
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it