Reputation: 2078
Sometimes I have code which I need to comment out so it won't bother, but I still want the color syntax highlighting.
Maybe a darker shade, but visible.
I'm using Sublime Text 3
Upvotes: 1
Views: 3184
Reputation: 2040
I'd suggest to uncomment part of the code if you'd like to keep the syntax highlighting for a while. There's no point in changing it permanently. It'd be confusing to read the comments.
Shortcut to comment out a block of code with sublime text
Answer by Randall Ma
The shortcut to comment out or uncomment the selected text or current line:
- Windows: Ctrl+/
- Mac: Command ⌘+/
Alternatively, use the menu:
Edit > Comment
For the block comment you may want to use:
- Windows: Ctrl+Shift+/
- Mac: Command ⌘+Option/Alt+/
If you'd like to change the color of the comments you should find you color scheme.
Option 1
Install it via Package Control
Then type:
PackageResourceViewer: Open Resource
->Color Scheme - Default
and select your theme - Monokai.tmTheme
as example.
Option 2
Editing is way simpler than advices above.
- Go to Sublime installation folder, find there Packages subfolder.
- Open Color Scheme - Default.sublime-package as a zip archive (I use Total Commander and Ctrl+PgDn keys).
- Find there any scheme you like
*.tmTheme
, copy to HDD and edit with any XML editor.- Pack modified file back (with Total Commander just copy file to opened archive).
Upvotes: 1