New option to remove spaces around braces: insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces
See original GitHub issueFrom @aymone on July 8, 2016 17:59
- VSCode Version: 1.3
- OS Version: Ubuntu 16.04
- Language: JS
Steps to Reproduce:
1.Create a simple object with functions shorthand like:
const x = {
a(){}
};
2.Use VSCode auto format (ctrl+shift+i):
const x = {
a(){ } // why vscode add this extra space between braces?
};
Any way to disable this?
Copied from original issue: Microsoft/vscode#8965
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:25 (14 by maintainers)
Top Results From Across the Web
Does vscode support removing spaces after opening and ...
Updated answer for newer vscode version. As of VSCode 1.13, you can disable the automatic space insertion by setting: "javascript.format.
Read more >space-in-brackets - ESLint - Pluggable JavaScript Linter
This rule aims to maintain consistency around the spacing inside of square brackets, either by disallowing spaces inside of brackets between the brackets...
Read more >"insert space between empty braces" not working as expected
This option when checked will insert space between empty braces, this works but problem is if you type closing brace while the cursor...
Read more >Removing spaces placed by \Set command around curly braces
As shown below, the space is \: so you can negate that by redefining the command as \renewcommand\Set[1]{% \csname Set ...
Read more >Teeth Shifting After Braces - Fredericksburg Orthodontics
No matter which option you choose, it takes time and pressure to shift your teeth into place. Will Teeth Move Back After Braces?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@chandler0415 this worked for me:
(you might want to set them to
false
in your case)editor: VS Code 1.20.1
This should be controled by
insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets
but looks like it is not being honored.