Eclipse PDT
Although I don't really want to, I'm using Eclipse with PDT plugin for a project I'm working on. Everything seem fine except for the useless auto indentation. Not being used to it, it really throws me off while I'm typing and the feature not working correctly, at least according to my style, makes it even worse. So I have been trying to find a way to disable the auto indentation completely, unfortunately, to no avail. Any ideas about it?
Re: Eclipse PDT
Reply #1 –
I have not used Eclipse but most IDE's have some form of formatting profile that follows some convention like PSR-2 or whatever. They also allow you to define your own standard, so you should be able to do that? I use netbeans and was able to define a formatting that suited my taste (of course it still does some "auto" things which annoy me to no end !)
Re: Eclipse PDT
Reply #2 –
I think in theory you should create a new formatter (window > preferences > PHP > formatter) and then remove the indentation (as much as possible).
But from what I can see it doesn't work. Not sure if it is a problem with my install or what...
Re: Eclipse PDT
Reply #5 –
I could never go back to a basic editor. It's too hard and time consuming to track things down.
Re: Eclipse PDT
Reply #6 –
I have always worked on smaller codebases I was very familiar with, so never felt the need for the editor to think for me. Now that I'm working on bigger, unfamiliar projects, I can understand why people may want to use IDEs.
Re: Eclipse PDT
Reply #8 –
Configuring the code samples is really easy in Netbeans. Took me like 5 minutes (including the time to find it) to get it to what I wanted.