M
M
Mr_Sergo2020-08-14 21:29:27
Visual Studio Code
Mr_Sergo, 2020-08-14 21:29:27

How to disable spaces in multiline comments?

How can I disable auto-completion of whitespace (when using comment hotkeys) after the start and before the end tags in multiline comments?

5f36d7d56608a168358557.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mr_Sergo, 2020-08-16
@Mr_Sergo

In general, rummaging for a couple of days on the Internet did not give any results. After digging for a couple more days in defaultSettings.json , I found the line responsible for spaces in comments, but the file is read-only, so who cares:

  • press CTRL + SHIFT + P, the command palette will open
  • enter settings , from the drop-down list click on the item Open Settings (JSON) , settings.json will open
  • add the line "editor.comments.insertSpace": false,

Save, done
PS: Laziness is the engine of progress

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question