-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The formatter removes spaces where they should be, causing syntax errors or obfuscates comments. Off the top off my head this happens with if/else statements, switch case statements, within comments and with variable/class instantiations:
if else (...) > ifelse (...)
case foo: ... > casefoo:
// Foo bar > // Foobar
int foo ... > intfoo ...
Foo bar ... > Foobar ...
To Reproduce
Steps to reproduce the behavior:
Given that an if else statement is written with proper syntax, using single spaces between words
and shift + alt + F is pressed to format code
Expected behavior
Indents line up to create a uniform code layout
Spaces are not removed
Settings and Version information
- Insert spaces: yes
- Formatter version: 0.4.6
- VS Code version: 1.96.2
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working