ReformatCodeProcessor does not take editorConfig into consideration Follow
Answered
I am using ReformatCodeProcessor to reformat a piece of code via program, but it doesn't take editorConfig into consideration. Is it the correct way to format or is there another way to use editor config?
Please sign in to leave a comment.
Please show the full code sample.
Yann Cebron
The newFile.text returns me code that is formatted according to code style and also optimizes imports. But lets say if I put indent_size or tab_width into editorConfig, it doesn't take it while formatting.
Please try with com.intellij.psi.codeStyle.CodeStyleManager#reformat
How and where do you apply that, Yann? Looks like it goes in a properties file someplace.
VM settings?
Github2 I don't understand your question