8 Netbeans tips to speed up development

Netbeans is a great editor, below some tips to get the best out of it.

Use the shortkey for “Last Edit Location” default: CTRL+Q
Often I’m editing file and browse to another location inside the file. To go back to where I was Last Edit Location is a nice feature, it replaces the use of ctrl-z + ctrl-y to go to the previous location without changing anything. By htting the key multiple times all edit locations will be traveled.

Use a database connection inside your project
Right click in your current document and choose “Select Database Connection” to configure the database connection. Once this connection is set-up you have auto-completion available for your queries.

Use the code navigatior
Hit ctrl+7 to open the code navigator, the code navigator contains an overview of the classes, methods, properties, variables and functions in your current open document. You can also apply filters, for exemple to hide or display non public members. A nice addition to navigate to functions is the use for “Go to symbol” open it by hitting ctrl+alt+shift+o, or “Navigate>Go to symbol…”

Use code templates
Templates can prevent to type a large string over and over again. An example of a template I often use:

“ifpost”:

if($_SERVER['REQUEST_METHOD'] == 'POST') {

or “predump” which printouts a variable dump surrounded with pre tags.

Use bookmarks to quickly navigate trough your document
Once you have set a bookmark by pressing the default shortkey (ctrl+shift+m) you can quickly navigate to the previous by pressing (ctrl+shift+,) or go to the next by hitting (ctrl+shift+.)

Customize the IDE
You may have noticed I refer to a lot of short keys, by customizing the ones you use a lot or adding short keys for other functions that don’t already have one you can save a lot of time. (For exemple commiting and updating your SVN project)

Set-up a Xdebug
A nice start can be found here on the Netbeans wiki (here). Once Xdebug is configured you can save yourself a lot of time while debugging by using variable watches, breakpoints,…

Use plugins
Although Netbeans has a lot of build-in functionality plugins can really be a good help.
Plugins I install by default:

  1. Path tools, copying paths, explorering paths,…
  2. PHP Manual Search, put the cursor on a PHP function and hit ctrl+alt+f1 or use the icon in the toolbar to go to the php.net documentation
  3. Subversion, can’t live without it
  4. Explore from here (self explaining I think)
  5. Editor todo highlighting, highlights the todo’s in the source code

A lot of plugins can be found here http://plugins.netbeans.org/PluginPortal/

Comments

155 responses to “8 Netbeans tips to speed up development”

  1. uvs2.net Avatar

    References:

    What type of drug is a steroid

    References:
    uvs2.net

  2. yutoriarukyouikujouken.com Avatar

    References:

    Australian online casinos

    References:
    yutoriarukyouikujouken.com

  3. blackcoin Avatar

    Let’s compare the different bonuses available at top PayID casinos to
    see what’s on offer. Backed by most major Aussie banks, PayID lets you top up instantly,
    stay eligible for bonuses, and keep better control over
    where your money goes. PayID casinos in Australia are designed to make deposits faster,
    safer, and far less frustrating. Fast withdrawals, thousands of games, and a high upper payout limit when using crypto are just some of the reasons why CoinCasino is a high-end PayID casino.
    Its collection of RNG titles is ideal for solo play, while the
    live casino allows for real-time gaming and interaction with dealers and other players.
    After hours of playing at each casino, we’re confident that these
    platforms deliver the best experience for real money PayID gaming in Australia.

    Our content is for informational/entertainment purposes only – NOT
    financial, legal, or gambling advice. Blackcoin.co a fully independent review
    platform with no ownership ties to any casino operator or software provider.

    Yes, PayID uses advanced encryption and secure banking protocols to protect your
    financial information. The funding process is extremely easy and doesn’t
    differ much from casino to casino. It’s convenient candy96.fun and local, making it
    faster and easier for Aussies to deposit and withdraw.

    PayID is a legal payment processing system that is owned
    by a local Australian company.
    The mix of speed and security makes PayID a trusted choice for both casual and high-stakes gamers.
    Unlike typical financial institution transfers that can take several days,
    PayID enables down payments to be refined almost quickly. This eliminates the need to remember long BSB and account
    numbers when moving cash, making transactions quicker and
    easier.

  4. fdertolmrtokev Avatar

    Can I just say what a relief to find someone who actually knows what theyre talking about on the internet. You definitely know how to bring an issue to light and make it important. More people need to read this and understand this side of the story. I cant believe youre not more popular because you definitely have the gift.

Leave a Reply

Your email address will not be published. Required fields are marked *