vscode preserve indentation when commenting out lines
问题 In vscode (or most other editors I tried for that matter) when I have a block of code like this: function() { if(test1) { doThis(); andThenDoThat(); } } And I try to comment out the line andThenDoThat() e.g. by pressing Ctrl + / , I will get this: function() { if(test1) { doThis(); // andThenDoThat(); } } What I would like to get is this: function() { if(test1) { doThis(); // andThenDoThat(); } } In other words, I want the comment to preserve the original indentation of the code, and start