Florian Lorétan is a web developer, a musician and an open-source advocate.
Like many PHP developers who use Eclipse PDT, your first step after creating a new PHP file is probably to remove the closing ?> tag that Eclipse puts in it for you. Today I did those same three keystrokes (or more if you don't use keyboard shortcuts) to remove the damn closing PHP tag (whose absence is part of many coding standards), and decided to never do it again manually. The solution is quite simple:
PHP >> Templates in the navigation on the left.New Simple PHP file template and click edit.<?php
${cursor}
?>to
<?php
${cursor}Ok, Ok again, and you're done!UPDATE: I submitted this as a bug report for Eclipse PDT, and it's now part of the latest release!
Tags: productivity, php, eclipse
Comments
Post new comment