![]() |
| Smart indent + Auto-close brackets != Smart brackets |
|
It's easy to make this happen by yourself. Just go to tools->settings->Code Templates. Then, for change function to look how you want it. Here's how mine looks.
|
||||||||||||||
|
|
|||||||||||||||
|
I could relearn to hit ctrl-j after typing function but I would still be left with the problem for all other cases where I use brackets. Not to mention all my method definitions would have wonky formatting since the templates line everything up inside themselves not with the line they were fired on.
Lining up within the template is also the reason I couldn't just create a generic bracket template myself. Out coding standard is to always use brackets even for one line if statements and case statements so to have phpEd do this little bit of extra formatting for me saves me a lot of annoying typing. Not to mention I've rarely used code templates and have to tech myself to use them. I don't want to go down the path of having to define a private, protected, public, static private, static protected, static public and so on template so I can get just the function declarations to line up. |
||||||||||||||
|
|
|||||||||||||||
|
Has there been any update on this? I'm looking to switch from using Zend Studio to PhpED, and this is currently the single most annoying problem that I've found with PhpED. If this can be fixed, I'll have no reservations about using PhpED full-time instead of Zend Studio.
|
||||||||||||
|
|
|||||||||||||
|
Okay, so then I go and install the latest version and ... hello ... the inserting the cursor on a blank line between brackets is working as desired, although not in every situation.
It's a step in the right direction though. |
||||||||||||
|
|
|||||||||||||
|
Site Admin
|
I'm not sure what you mean. If you press enter while cursor is in between the braces, it will get indented (unless you have smart-indent feature turned off): blah{|} => blah{ ....| } |
||||||||||||||
|
_________________ The PHP IDE team |
|||||||||||||||
|
This has started working better in PhpED 5.5, although with "Cursor beyond EOL" disabled, the blank line in the middle isn't indented. I absolutely hate being able to position the cursor beyond the end of the line (I much prefer to see where characters actually exist), so can't we have PhpED inserting a tab character on that middle line if "Cursor beyond EOL" is disabled, please?
Thanks. |
||||||||||||
|
|
|||||||||||||
| Smart indent + Auto-close brackets != Smart brackets |
|
||
|
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by


RSS2 Feed