indentation

vscode preserve indentation when commenting out lines

戏子无情 提交于 2020-12-07 05:03:07
问题 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

vscode preserve indentation when commenting out lines

白昼怎懂夜的黑 提交于 2020-12-07 04:57:51
问题 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

vscode preserve indentation when commenting out lines

北慕城南 提交于 2020-12-07 04:56:58
问题 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