Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 19:53 Go to next message
Dave Clo is currently offline Dave CloFriend
Messages: 10
Registered: July 2018
Junior Member
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 20:00 Go to previous message
Dawid Pakula is currently offline Dawid PakulaFriend
Messages: 253
Registered: March 2013
Senior Member
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: Tue Nov 13 05:19:23 GMT 2018

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

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

Back to the top