Open RuiffCardoso opened 6 years ago
Yeah we need to ensure formatting profile preferences take precedence over editor settings. Need a new preference for that. Until then your best option is to make vscode settings for your project/folder match the ones from your eclipse formatting profile:
"[java]":{
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"editor.tabSize": 4,
},
Yeah we need to ensure formatting profile preferences take precedence over editor settings. Need a new preference for that. Until then your best option is to make vscode settings for your project/folder match the ones from your eclipse formatting profile:
"[java]":{ "editor.insertSpaces": true, "editor.detectIndentation": false, "editor.tabSize": 4, },
Thanks for the workaround, it will do for now
Yeah we need to ensure formatting profile preferences take precedence over editor settings. Need a new preference for that. Until then your best option is to make vscode settings for your project/folder match the ones from your eclipse formatting profile:
"[java]":{ "editor.insertSpaces": true, "editor.detectIndentation": false, "editor.tabSize": 4, },
I am currently struggling with this. How may I know that the formatter settings I have selected are actually being used?
There is a new setting editor.defaultFormatter
with the following description:
"Defines a default formatter which takes precedence over all other formatter settings. Must be the identifier of an extension contributing a formatter."
Going through the list of options shows "redhat.java". However, setting the java settings as follow still doesn't make the formatter profile take precedence.
"[java]": {
"editor.defaultFormatter": "redhat.java"
}
can we have auto give ";" ?
+1 - I do NOT want to separate my formatter options across thousands of definition files....
I have a configured formatter profile which has, among others, the following property:
If I go to a file and change, using the the option on the bottom right of VSCode to use a different attribute (ex.: space: 8) to code automatically formats to that selection, ignoring the formatted profile.
The problem is that after doing that, the formatter option for tabulations stop working. There should be a way to force format according the formatter profile, or to remove these individual file formatter options. Right now, I have some files where I pressed this and I don't know which ones, and can't force them to be formatted properly
Environment
Steps To Reproduce
Current Result
The project applies to manually selected configuration. Can't revert to use profile format.
Expected
One of the following: