Skip to content

Removes spaces where they should be  #10

@ErikErikErikErikErik

Description

@ErikErikErikErikErik

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

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions