Search
Close this search box.
Search
Close this search box.

NetBeans features

Code Bookmarks

This feature allows you to bookmark individual lines of code for easy browsing later.

It is very easy to add a bookmark to a file in NetBeans. We simply press Ctrl+Shift+M and in the gutter we see the bookmark icon (a blue arrow):

Image:netbeans-bookmark1_FastBookmarking.png

We can navigate between bookmarks with the following key combinations:

  • next bookmark via Ctrl+Shift+Period(.)
  • and previous bookmark via Ctrl+Shift+Comma(,)

Code Snippets (or Code Templates)

Code templates are prewritten snippets of code provided by NetBeans IDE. You can paste a snippet into your code by using code completion or the template's abbreviation followed by the Tab key. You can also surround your code with appropriate PHP snippets. Finally, you can define your own code templates.