Archive: netbeans

 

If you have a dual monitor setup you might decide to undock some of your Netbeans windows, for example for running XDebug sessions or PHPUnit testing. However you will find that by default, Netbeans sets the transparency of these windows to unreadable levels when they are not active. This really defeats the object and is [...]



 

If you use Netbeans then you have no doubt seen the red wavy underline that pops under lines that have errors. Unfortunatley if your errors relate to punctuation, eg concatenation full stops, then the red wavy line can actually obscure these making finding and fixing the error tricky. An nice alternative is to set Netbeans [...]



 

When using PHPUnit with xampp the first the to do is install PHPUnit through pear. You usually need to update pear first, after that you should be able to follow the instructions here Getting PHPUnit working with Magento is fairly straight forward. It's just a case of including Mage.php and then calling Mage::app(); in the [...]



 

There is a new feature in Netbeans that tries to auto fill the variables for methods and functions in PHP. Whilst this may be something that is a time saver for some, it often gets these wrong, and if you are using descriptive variables in the method then these are overwritten if you have a [...]



 

I recently installed the latest version of Netbeans (7.1) and decided to have a look through the available plugins at the same time. In there I found one called Quick File Chooser. This replaces the file selector with a keyboard optimised version, which includes auto-complete and narrowing down a file list as you type. If [...]



 

If you want to quickly comment out a block of code in netbeans you might find the following really useful Simply highlight the block of code and then hit [ctrl]+[shift]+[c] The same key combination will uncomment it again. Handy! More Reading:Netbeans Quick find Variable DeclarationPath Tools Netbeans Open File in external program plus guake codeNetbeans [...]



 

Comments your code are essential to help both other developers and, in some cases, yourself understand what the code is meant to be doing. When developing PHP in NetBeans there are two types of comments to consider. The first type of comments are the normal type of comments that are for a human to read [...]



 

If you ever find yourself in that annoying situation where netbeans refuses to see a file or set of files you've added to a folder, there is a solution. My instinct having used netbeans for the past year was to right-click the folder and click Refresh. The problem being that the Refresh item was missing [...]



 

Just stumbled across a simple and incredibly useful Netbeans plugin. http://plugins.netbeans.org/plugin/676/path-tools Path Tools. It's not listed in the standard list of available plugins, but if you download the nbm file and just drag and drop it into the plugin install dialog window it works easily enough. Once installed you can right click any folder or [...]



 

A nice little feature I stumbled across the other day. If you hold down [Ctrl] whilst left clicking a variable, you get taken straight to its definition. Handy! More Reading:Quickly Comment Code in NetbeansPath Tools Netbeans Open File in external program plus guake codePHPUnit, LAMP, Magento and NetbeansVery High Speed Batch Update Multiple Rows of [...]