Skip to main content



      Home
Home » Language IDEs » PHP Development Tools (PDT) » Newline (Enter) inserting 2 spaces and 2-space tab
Newline (Enter) inserting 2 spaces and 2-space tab [message #1793167] Tue, 31 July 2018 15:53 Go to next message
Eclipse UserFriend
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.
Re: Newline (Enter) inserting 2 spaces and 2-space tab [message #1793169 is a reply to message #1793167] Tue, 31 July 2018 16:00 Go to previous message
Eclipse UserFriend
Autoindent use your formatter configuration. I'm afraid you are using default PSR formatter with spaces
Previous Topic:Show function internal vars
Next Topic:Smarty integration into Eclipse Photon
Goto Forum:
  


Current Time: Sun Jul 06 09:24:21 EDT 2025

Powered by FUDForum. Page generated in 0.02936 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top