NetBeans Cheat Sheets - plugin detail

View code templates and keybindings.

NetBeans Plugin - NetBeans Cheat Sheets
Plugin owner: geertjan
Website: blogs.oracle.com/geertjan
Added: 2013-07-07
License: CDDL
Category: Editing
Downloaded: 3,848 times
Rating:
 4.58, by 10 users

Plugin Log Show log

Versions available

Download plugin   Download size: 0.03 MB   Last Update: 2015-11-08

This plugin is also available on the NetBeans Plugin Portal Update Center. Use 'Tools > Plugins' action from the NetBeans IDE main menu for convenient installation of this plugin


What's new in this version

Mavenized version of this plugin, created for 8.1, sources here: https://github.com/GeertjanWielenga/CheatSheets

Verifications for NetBeans versions

8.1 verification PASSED See verification details
Download plugin   Download size: 0.01 MB   Last Update: 2014-12-13

What's new in this version

2.0: Adds a drop-down in the Code Templates window so you can select HTML or Java, etc, depending on which of them are available.

4.0: Several fixes, described here: Bug Fixes and Enhancements for NetBeans Cheat Sheets

7.0: Code sensitivity can be disabled and custom code templates are automatically shown in the Code Templates window.

8.0: SQL included and error when deleting code templates fixed.

9.0: Description column shown in Code Templates window, which can be removed after right-clicking in the table header. Bug fixed related to duplicate entries appearing when a code template is changed. The cells in the table are now not editable anymore, which never made sense in the first place since the Options window is where you modify the templates.



Verifications for NetBeans versions

Plugin is not subject to any verification

Download plugin   Download size: 0.01 MB   Last Update: 2013-07-07

What's new in this version

Keybindings loaded on demand.

Verifications for NetBeans versions

Plugin is not subject to any verification



Introduction

Two new windows are provided, for viewing code templates and keybindings while coding in the NetBeans editor.

[ You have to be logged in to be able to comment. ]

User Comments

  

Don't really understand, drop me a mail with details.

geertjan.wielenga@oracle.com
Posted by geertjan on Apr 19, 2016
  

DeInstallation leaves artifacts

After deinstallation (just for a test, see my comment at the HTML5 Fun Pack plugin) the plugin leaves two empty entries on top of the Netbeans-Window menu item.

Update: I'm not able to reproduce it a second time, seems like an one time fail.
Posted by testtesttest on Apr 19, 2016
  

Settings

The next release should be able to save its settings:
https://github.com/GeertjanWielenga/CheatSheets/issues/1
https://github.com/GeertjanWielenga/CheatSheets/pull/2
Posted by loxley on Feb 15, 2016
  

BIG thank you and a couple of requests

Hi,
Thank you so much for your plugin!!
Is it possible to save the "columns to show" for the next reboot of the program? Because every time Netbeans is rebooted the setup is lost. We have to choose again what columns "Template" "Description" "Expands to.." are visible.
And a second request, it would be very good if we can "drag and drop" from the "Template" column to the editor, the snippet we want
Best.
Posted by pepebeans on Feb 13, 2016
  

Current status of plugin...

https://blogs.oracle.com/geertjan/entry/netbeans_ide_8_1_plugin
Posted by geertjan on Nov 08, 2015
  

It is not in "Plugins" yet...

Can you not click the Download button on this page? Then you'll have an NBM that you can install into NetBeans IDE in Tools | Plugins.

Right now, it is being verified. After it has been verified, it will be in Tools | Plugins.
Posted by geertjan on Nov 08, 2015
  

Not found

I have a brand new install of NB 8.1 (Java SE only), and when I go to Plugins and search for "cheat", it doesn't show anything. I see 121 plugins available.

I can probably figure out how to get this plugin, but it would be sure nice just to have it available right there were it's easiest to grab.

Thanks for all your great work on NB, btw!
Posted by markspace on Nov 08, 2015
  

Drop me a mail when you find bugs...

geertjan.wielenga@oracle.com
Posted by geertjan on Jan 29, 2015
  

Works fine for me in 8.0.2

Can you drop me a mail at geertjan dot wielenga at oracle dot com? Let's figure out together what's going wrong. (E.g., do a restart, remove the user directory, maybe, etc.)
Posted by geertjan on Dec 05, 2014
  

It doesn't work after 8.0.2 update

So, title says it all. The plugin show up with blank content and netbeans notify me with one exception:
[code]
java.net.SocketException: Connection reset
at java.net.SocketInputStream.read(SocketInputStream.java:189)
at java.net.SocketInputStream.read(SocketInputStream.java:121)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:703)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:674)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1534)
at sun.net.www.protocol.http.HttpURLConnection.access$200(HttpURLConnection.java:90)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1431)
at sun.net.www.protocol.http.HttpURLConnection$9.run(HttpURLConnection.java:1429)
at java.security.AccessController.doPrivileged(AccessController.java:0)
at java.security.AccessController.doPrivileged(AccessController.java:713)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1428)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:646)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1300)
at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1267)
at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:263)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1164)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1050)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:964)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:243)
at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:348)
at org.openide.xml.XMLUtil.parse(XMLUtil.java:365)
at org.netbeans.cheats.KeyBindingsTopComponent$KeyBindingsChildFactory.createKeys(KeyBindingsTopComponent.java:65)
at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:209)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
[/code]
Posted by gilbertoca on Dec 05, 2014
  

Just restart the IDE

Restart the IDE and you'll see your custom code templates.
Posted by geertjan on Nov 01, 2013
  

Custom code templates

It would be much more useful if it was able to also show custom code templates (defined by users)
Posted by mcinp on Nov 01, 2013
  

Custom keyboard layout

Code templates works fine but key bindings doesn't work:

java.lang.NullPointerException
at org.netbeans.printtemplates.KeyBindingsViewer$KeyBindingChildFactory.createKeys(KeyBindingsViewer.java:120)
at org.openide.nodes.AsynchChildren.run(AsynchChildren.java:209)
at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
[catch] at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)
Posted by wellic on Jul 11, 2013
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo