How to change default encoding in NetBeans 8.0 [duplicate]

Solution given by Danny Navigate to <Netbeans installation directory>/etc and open the netbeans.conf file. Add -J-Dfile.encoding=UTF-8 at the end of the line that starts with netbeans_default_options (make sure to include the leading space). Restart Netbeans and it should be in UTF-8 To verify go to help -> about and check System: Windows Vista version 6.0 … Read more

Any netbeans features that will make my day?

I’ve found another great snip of genius i wanted to share: you can do custom code folding (not really related to php, just netbeans) just put this into a code file: // <editor-fold defaultstate=”collapsed” desc=”getters and setters”> some boring code you don’t need to see every time here // </editor-fold> That’ll behave similar to #regions … Read more

How to exclude files / code blocks from code coverage with Netbeans / PHPStorm / PHPUnit integration

To ignore method code blocks: /** * @codeCoverageIgnore */ function functionToBeIgnored() { // function implementation } To ignore class code blocks: /** * @codeCoverageIgnore */ class Foo { // class implementation } And as @david-harkness said, to ignore individual lines: // @codeCoverageIgnoreStart print ‘this line ignored for code coverage’; // @codeCoverageIgnoreEnd More information can by … Read more