Export IDEA style settings for VSCode

Answered

Is it possible to export code style settings for VSCode? Or does VSCode understand how to import IDEA (based) IDE settings?
Thank you.

8 comments
Comment actions Permalink

IntelliJ IDEA and VSCode formatters are different and not all the settings can be shared. The one common thing is that both support editorconfig formatting. In IntelliJ IDEA you can export some of the supported options into the .editorconfig format that can be later used in VSCode:

https://youtrack.jetbrains.com/issue/WEB-15687#focus=streamItem-27-2778370.0-0.

1
Comment actions Permalink

@SergeBaranov, as I understand it is still very limited. It doesn't seem to allow to specify, what for example is styling for curly brackets and so on. Are there spaces around arguments inside curly brackets. A huge bunch of limitations I would say.

0
Comment actions Permalink

You could ask VSCode developers to add import for IDEA code style settings.

0
Comment actions Permalink

So basically what you are saying, that there is no way at the moment, to create same code style environment between two IDEAs by exporting settings from IDEA into VSCode or vice versa.

0
Comment actions Permalink

Yes, currently it's possible only through editorconfig.

0
Comment actions Permalink

is there any 2022 updates on this? would it be possible in intellij to export .editorconfig for vscode?

0
Comment actions Permalink

Gparmigiani

Yes, it is possible:

File | Settings | Editor | Code Style

2
Comment actions Permalink

awesome thanks!

0

Please sign in to leave a comment.