1

I know that I can comment with shift + alt + A or ctrl + /, but is there any way to comment like this with hotkey:

/* First line of comment
 * Second
 * Third
 */
chenghuayang
  • 1,424
  • 1
  • 17
  • 35
  • Why would you want an asterisk in front of each line? – Matthias Aug 25 '21 at 12:11
  • @Matthias: It's more efficient to see when having content section in front of the code file. Also in Better Comments extension in VScode, it's highlighted with green. – chenghuayang Aug 25 '21 at 12:17
  • This doesn't directly answer the question but it's helpful https://stackoverflow.com/questions/34822552/how-to-customize-comment-block-characters-in-visual-studio-code – Alexandre Elshobokshy Aug 25 '21 at 12:23

1 Answers1

0

You may try eslint as the only formatter in your VScode. It'll change your multi line comments to an starred-block comment on save.

Yet there is no shortcut to remove a starred-block comment in VScode that I know.

vscode-eslint

eslint multiline-comment-style

Stephen Ostermiller
  • 23,933
  • 14
  • 88
  • 109
Ares
  • 1