NetBeans TagMyCode Plugin

TagMyCode NetBeans plugin allows you to create your snippets directly from IDE and search for all your saved snippets.

Installation

  1. Go to Tools > Plugins
  2. Select Available Plugins tab
  3. Select TagMyCode then click on Install button

plugins_manager_netbeans

You can also install the plugin manually downloading the zip from NetBeans Plugin Portal

Login

After installation click on Login > Authenticate… button

netbeans_login

A new page will be opened on your browser where your credentials are requested. If you are logged in you will see a page like this.

tagmycode_netbeans_authorize

Click Allow button and you will receive a Verification Code then copy and paste it to the Login dialog

Usage

Once you have installed and configured your plugin your are able to manage your snippets directly from the IDE.

Add new snippet

You can create new snippets with the New snippet… button or directly from the source of code simply by selecting text on editor and clicking Add Snippet on TagMyCode… menu item.

 

netbeans_add_snippet_from_selection

netbeans_new_snippet

When you add a new snippet you can see it in the main TagMyCode window so you can manage

netbeans_added_snippet

Search snippets

There are two methods for searching snippets:

  • filter by text in the main TagMyCode window: while you typing you will see only snippets that match to the input text

netbeans_filter_snippets

  • quick search from contextual menu directly from editor: you will see a search dialog that displays snippets corresponding to input text
    • when you select a snippet you can also insert the entire code into the editor at cursor position by clicking the Insert at cursor button

netbeans_quick_search