Jump to content

Archived

This topic is now archived and is closed to further replies.

Glese

Text Formation in the Code Editing Software

Recommended Posts

I like to write code in a readable, clean and also indented way.

 

I think formation help can save time even in PHP, Netbeans does provide it, ZendStudio does not have it at all.

 

Though Netbeans' formation help still does have quirks, and I am wondering is it further adjustable to remove those quirks and make it work more well with PHP?

 

What would you recommend in general regarding formatting PHP code with the code editing software?

 

I simply think I am investing too much time and effort editing, if it just would be efficient manual indenting and then normal typing out I would have a less of a problem with it.

 

I also intend to learn OOP with PHP soon.

Share this post


Link to post
Share on other sites

I generally use the Zend Coding Standard, though at work we use a slight variation of it.

 

As long as you keep your code consistant you'll usually be pretty right.

Share this post


Link to post
Share on other sites

Just in case it got overlooked, I meant the formation HELP of NetBeans which automatically formats when typing the code out. It does format well per se but it also does format wrong at ones. How would you recommend to deal with the wrong formatting and indenting?

 

Do you personally type without any formation help at all?

Share this post


Link to post
Share on other sites

I use vim which does a good job of helping with indentation. IDE's generally get in my way.

Share this post


Link to post
Share on other sites

Just in case it got overlooked, I meant the formation HELP of NetBeans which automatically formats when typing the code out. It does format well per se but it also does format wrong at ones. How would you recommend to deal with the wrong formatting and indenting?

 

Do you personally type without any formation help at all?

For Eclipse you can upload XML files for your custom format (project >> preferences >> Java code style >> formatter).  So when you hotkey "ctr+shf+F" your code automatically gets formatted/indented to your liking.  I assume Netbeans has the same feature.

Share this post


Link to post
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.