Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Formatting is using 4 spaces instead of what I set it to use #1015

Closed
chrmarti opened this issue Dec 5, 2016 · 8 comments
Closed

Comments

@chrmarti
Copy link

chrmarti commented Dec 5, 2016

From @Lazzu on December 2, 2016 14:10

  • VSCode Version: Code 1.7.2 (7ba55c5860b152d999dda59393ca3ebeb1b5c85f, 2016-11-21T22:06:37.428Z)
  • OS Version: Windows_NT ia32 10.0.14393
  • Extensions:
Extension Author Version
githistory donjayamanne 0.1.2
Theme-azure gerane 0.0.2
theme-chrome-devtools-dark ivanzusko 0.0.1
omnisharp ms-vscode 0.3.3
better-merge pprice 0.3.0
vscode-icons robertohuertasm 4.0.4
unity-tools Tobiah 0.1.9
unity-debug Unity 1.1.0
gitblame waderyan 1.3.0
unity-snippets YclepticStudios 0.1.2

Steps to Reproduce:

  1. Set indentation formatting to be 2 spaces, no tabs. My config below:

"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.formatOnType": false,
"editor.formatOnSave": true

  1. Automatic formatting is still using 4 spaces

Copied from original issue: microsoft/vscode#16386

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

From @mrmlnc on December 2, 2016 14:12

Language?

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

From @Lazzu on December 2, 2016 14:12

C#

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

From @mrmlnc on December 2, 2016 14:14

Is a random problem?

I ask because we have similar problem with JS/TS (#15316).

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

From @Lazzu on December 2, 2016 14:16

I haven't noticed it being random.

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

@waderyan @jrieken Could this be a more general issue than just with JS/TS? (#15316)

@chrmarti
Copy link
Author

chrmarti commented Dec 5, 2016

From @jrieken on December 5, 2016 9:51

re microsoft/vscode#16386 (comment) - I don't think so

@DustinCampbell
Copy link
Member

This is essentially a duplicate of #93. For now, you can specify formatting settings using an omnisharp.json file.

@joergkrause
Copy link

Just as an addition for those still struggling with old bugs: After changing the omnisharp.json file you must restart the Omnisharp server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants