Remove trailing spaces automatically or with a shortcut

后端 未结 7 1352
-上瘾入骨i
-上瘾入骨i 2020-12-07 07:12

Is there a way to remove trailing spaces in Visual Studio Code (automatically or with a shortcut)?

I\'ve been looking for this in the command palette and in the edit

7条回答
  •  一个人的身影
    2020-12-07 07:47

    Menu FilePreferenceSettings

    Check the "Trim Trailing Whitespace" option - "When enabled, will trim trailing whitespace when saving a file".

提交回复
热议问题