VS Code 不断将我的“editor.formatOnPaste”设置更改为 true

cal*_*lum 2 visual-studio-code

该设置"editor.formatOnPaste": true不断神奇地重新出现在我的 VS Code 用户设置中。是什么原因造成的?

cal*_*lum 6

回答我自己的问题。每当我单击“格式切换”状态栏按钮时,就会发生这种情况。默认情况下,每当您单击它时,它都会editor.formatOnSave 切换 editor.formatOnPaste

将其添加到我的用户设置中以修复它:

"formattingToggle.activateFor": [
    "formatOnSave"
]
Run Code Online (Sandbox Code Playgroud)