Eclipse bookmark width does not change

I looked through a few posts related to this, but they don't seem to help me solve my problem. I have a project where java files are indented with a width of 2 spaces. I would like to change everything to 4 spatial width. I tried the "right indent" option, but it just translates everything back to the width of 2 spaces when I change several lines to 4 segment indent. I checked the settings in Java-> Code Style-> Formatter, and by default - 4 spatial width. I also checked the settings in General-> Editors-> Text Editors, and they were set to bookmark width of 4 spaces.

I thought that the right indentation might have read the entire java file and corrected the code to fit everything else in the file, so I manually modified each line to have an indentation of width in 4 spaces. Auto-correction indentation still returns all in 2 spaces. Has anyone had this problem before? Is there any other setting to change?

+4
source share
1 answer

I have found a solution. In the settings for the project, the indentation width was set to 2 rather than 4. These settings were supposed to override the eclipse settings.

+5
source

All Articles