I'm evaluating VS.Php right now, and would seriously consider purchasing VS.Php if custom formatting rules could be implemented. I also have a few other things on my wishlist, but custom formatting is highest.
I started with using emacs from a putty instance, but I really wanted code completion, a code browser, and mouse support, so I played around with Eclipse with PDT ( way too slow ), Netbeans IDE ( no built-in way to integrate a remote dev environment ), and Komodo IDE ( currently using ). I tried VS2008, and was immediately impressed by its speed and awesome intellisense. I would really like to switch, but the other problem with all of the other editors is that there are no custom formatting rules, with the exception of Zend Studio, which is prohibitively expensive, and it has all the problems Eclipse has. Which brings me back to VS.Php.
It'd be awesome if VS.Php could support custom formatting rules like in C#. I don't know how difficult it would be to implement rules that were as extensive, but the current formatting options are too limiting. We use specific code formatting rules that were refined and perfected in emacs ( which is why I started with it ). Another note, C# doesn't have too many indenting rules, and it'd be cool if I could specify how things are indented WITHIN parenthesis.
- if( $one = 0; $one < $two; $one++ ) {
- $this->doSomething( $var1,
- $var2,
- $var3,
- 'this is a string',
- false );
- $this->doSomething( $var1,
- }
This is how the formatting wants to be done currently, but we would like $var2, $var3, etc. to start in the same column as $var1, so that they're lined up.
While I'm at it, it'd be nice if keywords like $this or parent:: or ClassName::CONSTANT could have different colors too.
Strip whitespace at the end of lines on save.
I don't know if this is possible, but being able to have "links" to folders in the solution explorer would be nice. I work on a remote project, and our unit tests are kept in a different directory than our source, so to have to scroll down past tons of folders and files in the source directory in order to get to the test directory is a little troublesome. I'd be nice to have something where I can access the test and source directories without having to dig through the entire filesystem.
I know I might be asking for something that not a lot of developers require or need, but these are kinda important to me. Thanks for your time.
NathanW says:
Just want to say that I totally agree. VS.Php is sometimes extremely sporadic with formatting with regards to indenting, too. In general, having control over brackets, spacing (e.g. it used to be that if you typed <?php echo 'testing'; ?>, it removed the space after the semicolon... not 100% sure if this has been fixed, I'm using an old version), indentation, etc. would be wonderful.
Definitely a top priority from here - certainly higher than integrating frameworks into Intellisense (can't I do that myself if I wanted to?).
juanc says:
The problem comes when there is syntax errors, it fails to do things correctly.
What you can do is that once you have no syntax errors do: Ctrl+K Ctrl+D and should fix all indentation in your code.
Juan