在 VS Code 中编辑函数时,是否可以禁用删除括号前的空格?
假设我有一个功能
function render () {
// some code here
}
当我开始编辑它时,VS Code 会删除括号前的空格并将此代码转换为:
function render() {
// some code here
}
有没有办法禁用这种行为?
最佳答案
"javascript.format.insertSpaceBeforeFunctionParenthesis": true
function render () {
// some code here
}
"javascript.format.insertSpaceBeforeFunctionParenthesis": false
function render() {
// some code here
}
"editor.formatOnType": true
关于visual-studio-code - VS Code - 函数括号前的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41150726/