I have a JSX file with two indentation, but IntelliJ continues to add indentation with four spaces. The change Settings>Editor>Code Stylefor Javascript, HTML, and other file types does not seem to affect this.
Settings>Editor>Code Style
How to change code style for JSX files?
It turns out that the reason the IDE does not respond to my settings changes is to use the EditorConfig ( Settings>Editor>Code Style>EditorConfig) mode . Editing the file .editorconfigfor the line indent_size = 2fixes the problem.
Settings>Editor>Code Style>EditorConfig
.editorconfig
indent_size = 2
Source: https://habr.com/ru/post/1649035/More articles:Does httproxy vulnerability extend to Elixir applications? - elixirAndroid, Volley Request, response blocks main thread - javaОпределить разбиение страницы page_size для каждого представления в Django Rest Framework - pythonReplace (recode) the values in the list - rHow to create a .NET Core library that I can reference from the .NET Core App (Web API) - .net-coreTable rows in a component in angular 2 - angularhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1649037/how-can-custom-allocator-know-if-a-pointer-points-to-an-array&usg=ALkJrhhvRbq_CkRYl-_XNtEuyauoJXx4ywHow can I prevent the Angular asynchronous pipe from frequent server calls when results are not returned? - angularIonic2: how to use a different ionic menu in each presentation for children - angularPython named string format arguments - pythonAll Articles