I am trying to integrate VSCode settings.json into WebStorm. When I save files, VSCode automatically formats the code for me. How can I integrate this formatting into WebStorm?
For example, here is a settings.json in VSCode:
{
"eslint.validate": [
"javascript"
],
"eslint.format.enable": true,
"eslint.alwaysShowStatus": true,
"editor.formatOnSave": false,
"editor.tabSize": 2,
"stylelint.validate": [
"scss",
"css",
"less"
],
"css.validate": false,
"scss.validate": false,
"stylelint.config": null,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll": "explicit"
}
}
VSCode is an awesome editor and it contains many features but those are not in other editors or IDEs in the same band. It means if you want to have a consistent development environment setting you have to do it in another way.
For having editor configs you must use a
.editorconfigfile to make it consistent in any type of editor or IDEMore information
For having linting in your development area you must use a specific setting, let me have an example for
ESList. First of all, you must install theeslintpackage and then the related plugins and put a.eslintrc.jsonconfig file:By using this way all configs of VSCode, got separated into different files but now they are fully consistent with any type of IDE or editor. There isn't any easy way to use VSCode setting file directly in WebStorm.