Software⏱️ 2 min read📅 2026-06-03

How to Fix: Keyboard shortcut to comment lines in Sublime Text 2

Sublime Text 2 comment line shortcut

Quick Answer: Use the 'Shift+Alt+-' keyboard shortcut to comment lines in Sublime Text 2.

To comment lines in Sublime Text 2, you can use the keyboard shortcutCtrl + /, which will enclose a selection in a comment.

🛑 Root Causes of the Error

  • Using the wrong shortcut can lead to inconsistent commenting.

🔧 Proven Troubleshooting Steps

Method 1: Keyboard Shortcut

  1. Step 1: Press Ctrl + / to comment a selection.

Method 2: Manual Commenting

  1. Step 1: Manually add the comment symbol (/*) at the beginning and end of your selection.

✨ Wrapping Up

By using the correct keyboard shortcut, you can efficiently comment lines in Sublime Text 2 and maintain consistency throughout your code.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions