Your first NetBeans project
- On the start page click the Learn & Discover tab
- Under Demo's and Tutorials select Java SE applications
- Start the Java Quick Start Tutorial
If you're searching how to do someting in netbeans just type it in the ... search box, it will not only search in your project, but also in the online help.
- view, search & change shortcuts: tools => options => keymap
- You can set the keymap to a profile from another IDE (Eclipse, IntelliJ...) here as well.
- help => keyboard shortcuts card. The pdf that is shown, lives in
- Some additional useful shortcuts:
- Go to
- to definition: CTRL click
- to implementation: CTRL ALT click
- Code completion
- autocomplete popup (+ javadoc): CTRL SPACE
- javadoc inline popup: CTRL SHIFT SPACE
- ALT F1 to see in browse
- Netbeans bundles plenty of javadoc you can browse supplied javadoc for your project libraries from help>Javadoc references
- complete to recently typed word: CTRL k
- Add semicolon at end of line: CTRL ;
- Add new line below + go there: SHIFT ENTER
- fold/unfold code: CTRL –/+
- members/herarchy of current selection: CTRL/ALT SHIFT F12
- After you ran a program, and corrected some errors Rerun using the >> buttons.
- The lighter double arrows below allow you to rerun with different parameters. You can change the arguments you run with in the Ant properties window.
- Similar options are available for (individual) tests.
- You can also launch an individual test by positioning the cursor in the method and selecting "Run focused test" from the right click menu.
Netbeans comes with plenty of sample projects for you to explore
HTTP MonitorIn the properties of your Server you can enable the HTTP monitor.
When the server receives an HTTP request, NetBeans will show a window with all request (but not all response) details. (You may have to undeploy/redeploy your webapp for the monitor to show up).