Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans Code Completion

Tags:

netbeans

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?

like image 783
TheBAST Avatar asked Dec 05 '25 21:12

TheBAST


2 Answers

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.

like image 158
steal3rd Avatar answered Dec 09 '25 19:12

steal3rd


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.

like image 26
acm Avatar answered Dec 09 '25 18:12

acm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!