Newline (Enter) inserting 2 spaces and 2-space tab [message #1793167] |
Tue, 31 July 2018 15:53  |
Eclipse User |
|
|
|
I'm using a fresh install of Eclipse PDT on a Mac (all latest software as of now), with Displayed tab width of 4 spaces and unchecked Insert spaces for tabs, and in PHP files to use tab indents of 4 spaces without using space characters, which works fine when hitting the Tab key, but when hitting Enter on an single-indented line, instead puts 2 spaces and a 2-space tab... On lines with more than 1 indent, it just puts all spaces.
I did notice the file has 6-character indents in the function I'm working on, and probably has mixed-character indentation (tabs and spaces variously throughout the file), so maybe Eclipse is unnecessarily checking the rest of the file to do this weird space-tab thing.
Can someone explain this? If I format the file, tab indents work perfectly no matter what I do, but I don't want to commit the file with meaningful code changes and formatting changes right now.
|
|
|
|
Powered by
FUDForum. Page generated in 0.02936 seconds