Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change comment formatting in VS Code

I am having the opposite problem than this question: In a SASS .scss file, I want comments command (ctrl/⌘ + /, ctrl/⌘ + K ctrl/⌘ + C) to default to //, and use the Block comment /* ... */ only when using the block comment (shift+alt+A).

I have been unable to find a way to change this setting, via the user settings or even a plugin. Is it possible? Is my google-fu just bad?

like image 712
mix3d Avatar asked Nov 16 '16 15:11

mix3d


People also ask

How do I change the format style in VS Code?

Press Control + Shift + P or Command + Shift + P (Mac) to open the command palette and type format document and then select Format Document option.

How do you change the font in comments in VS Code?

Open your VS editor. Navigate to the upper part of the screen and select File. Now, in the drop-down menu, go to Preferences > Settings. You'll now see the Commonly Used section with a menu on the right-side of the screen, you can access the font from this page or by following the step below.

How do you beautify text in VS Code?

The code formatting is available in Visual Studio Code through the following shortcuts: On Windows Shift + Alt + F. On Mac Shift + Option + F. On Linux Ctrl + Shift + I.


1 Answers

A very belated answer, but you can amend the language-configuration.json file for the language in question. More here: https://code.visualstudio.com/api/language-extensions/language-configuration-guide.

like image 59
drkmtr Avatar answered Oct 10 '22 15:10

drkmtr