Snip2Code & TagMyCode

Code sharing for NetBeans developers

Geertjan Wielenga

Through the years, a recurring request by developers everywhere—not least among NetBeans users—is a facility for collaborative development. Here I want to share info on two platforms for snippet sharing and how neatly they integrate into NetBeans IDE.

Of course, GitHub is great. However, the focus of GitHub is on working together on complete projects, rather than sharing small snippets of code that solve specific problems.

Below, learn and experiment with Snip2Code and TagMyCode, two really helpful platforms for code sharing.

Snip2Code enables users to search, collect, and share code snippets with their friends, colleagues, and the world, enhancing both their and their team’s performance when dealing with source code. By reusing fragments of source code, developers can enhance both the quality of produced code, as well as delivery speed. The site is as follows and is well worth exploring, notice that commercial support is also available if needed, though is not mandatory for usage of the NetBeans plugin:


You can follow the Snip2Code steps for getting started in NetBeans IDE here or simply go to Tools | Plugins and you’ll easily  find the plugin, as shown below:


You’ll then see, in the Tools menu, access points to Snip2Code, as well as handy keyboard shortcuts for doing so, plus you’ll find new toolbar buttons that give you quick access too. Once your account is set up and you’re logged in, you’re good to go and can share and search for snippets, which you integrate into the NetBeans editor by copy/paste from the Snip2Code window:


Snip2Code appeals to the needs of enterprises needing to preserve their software knowledge, in the form of code snippets, without sharing those snippets with the world—for this purpose, Snip2Code also enables the user to create a Pro account to manage private groups of users and share those snippets only across this selected audience. When adding a snippet from NetBeans IDE, the user is asked to share the snippet with one of those groups. Moreover, the Snip2Code platform can be installed on premise, enabling a company to store snippets on their own servers, rather than relying on the Snip2Code cloud service. Go here for further information on the enterprise offering.

In conclusion, the Snip2Code plugin for NetBeans IDE gives you access to the Snip2Code platform, which is populated with a world of code snippets that can easily be integrated into your code in NetBeans IDE.

TagMyCode provides the same kinds of facilities as Snip2Code. The integration with NetBeans IDE is a bit different though.


The plugin is installed via the Plugin Manager, under Tools | Plugins:


Once you have installed the plugin—and set up your account and logged in—you’re able to add and search for snippets, directly from the snippet in the editor that you’re interested in sharing:


Your snippet will appear in a window in NetBeans IDE, looking like this:


Once you have some snippets, you’re able to manage them in the TagMyCode window:


Both Snip2Code and TagMyCode have on-line facilities for managing code snippets and sharing them, i.e., you can work in NetBeans IDE or in the browser with the snippets you’re interested in using or sharing.

In conclusion, those interested in snippet sharing facilities have at least the above two platforms at their disposal, and with helpful integration into NetBeans IDE, too!



Geertjan Wielenga

Geertjan works on open source technologies, such as Oracle JET ( and NetBeans IDE ( at Oracle.