TheBAST
TheBAST

Reputation: 2736

Netbeans Code Completion

Is there any netbeans trick that would do like Sublime text that if you just type div.header-class then it will then just automatically formulate `

<div class=header-class"></div>

How to do that trick? or is it possible?

Upvotes: 3

Views: 171

Answers (2)

steal3rd
steal3rd

Reputation: 108

I think this is probably through a plugin known as Emmet.

NetBeans has a plugin for it too. The plugin page indicates that it's for older versions, but the comments are reporting success with version 8.1. Incidentally, it doesn't show up in the plugin manager from NetBeans on Windows for me, but the GitHub page looks active though.

The Emmet download page points to this repo.

Upvotes: 1

acm
acm

Reputation: 2120

In Netbeans you have 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.

Following the tutorial linked you can define your own code template to meet your requirements.

Upvotes: 1

Related Questions