Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Reformat code does not reflect my code style config for tab indent

$
0
0

I have searched a number of times and have not come up with any answers. My problem is that I open the code style, select general, then select project. The default settings are 4, 4, 8 respectively. So I change them to 2, 2, 4, as well as change the defaults for HTML and Ruby as well. When I return to my file and click on reformat code for this file, nothing happens. But if I start a new line and click tab, it does only tab 2 spaces. Once I reformat my code again, if reverts back to 4 spaces.

 

How can I use the reformat to reflect the new 2, 2, 4 indent scheme?


I am currently working on a Ruby on Rails (using ERB files) project with another dev, who is using Sublime Text, and due to VCS issue, we need the spaces to be 2. I'd rather not have to discard Intellij for what seems to be a simple issue.


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>