Glese Posted December 21, 2011 Share Posted December 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253581-text-formation-in-the-code-editing-software/ Share on other sites More sharing options...
trq Posted December 21, 2011 Share Posted December 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253581-text-formation-in-the-code-editing-software/#findComment-1300014 Share on other sites More sharing options...
Glese Posted December 21, 2011 Author Share Posted December 21, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/253581-text-formation-in-the-code-editing-software/#findComment-1300045 Share on other sites More sharing options...
trq Posted December 21, 2011 Share Posted December 21, 2011 I use vim which does a good job of helping with indentation. IDE's generally get in my way. Quote Link to comment https://forums.phpfreaks.com/topic/253581-text-formation-in-the-code-editing-software/#findComment-1300232 Share on other sites More sharing options...
Maq Posted December 21, 2011 Share Posted December 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253581-text-formation-in-the-code-editing-software/#findComment-1300236 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.