Netbeans Code Completion - 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?

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.

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.

Related

Eclipse Markdown Preview Editor brooken?

Using eclipse: Version: 2019-06 (4.12.0) Build id: 20190614-1200. On Ubuntu 19.10.
I have installed the Eclipse Markdown Editor in eclipse:
https://marketplace.eclipse.org/content/markdown-text-editor#group-screenshots
But seems the preview editor is broken - it cannot render tables:
I looks fine when I push the README.md to bitbucket:
So Markdown is correct. Maybe.
https://marketplace.eclipse.org/content/markdown-text-editor#group-screenshots
is still in alpha state and there are better/more mature markdown editors for eclipse?
UPDATE:
Works out of the box in VS Code:
Maybe not strictly following the markdown specification but I guess 99.99% of users (including me) does not care about that and basically just want same behavior as github/bitbucket.E.g.(unless you want to pay):
http://www.wayneparrott.com/best-markdown-tool-for-eclipse/
So another bullet in the good old eclipse coffin/IDE.
On a side note also tried the github flavored markdown plugin for eclipse but for some reason its not compatible with my version of eclipse - yet another example of a problem you would not really expect to have to investigate for a modern IDE:
so that plugin is too fragile.

How to enable collapse/expand code blocks feature in eclipse

I'm using the following version of eclipse on windows 7 desktop. On my ColdFusion files opened in eclipse I don't see +/- symbols for collapsing/expanding blocks of code. On the tool bar I can't find any option for enabling this feature. I don't see an option for Java-->Editor... either. In Preferences section I see only the options shown in the attached image:
Eclipse IDE for Java Developers
Version: Mars Release (4.5.0)
Build id: 20150621-1200
UPDATE Using the help from #E-Riz I found the folding option in Preferences and enabled all the options there as shown in the updated image below. But still I'm not seeing +/- symbols in the code editor to collapse/expand the code blocks. I've tried closing and reopening eclipse, as well.
As you can see there are no +/- sings in the file below although the editor used is CFEclipse:
The feature is called folding. If you enter "folding" (without the quotes) in the Preferences search field, you'll find the places where it's configured.
I don't know if you have a plug-in specifically for editing ColdFusion files; if you do, it may or may not support folding. For example, CFEclipse has folding support, so if you open your files in that editor, you should see it.

Folding of PHPDoc comments on open not working in Eclipse Luna (why)?

why do these checkboxes seem to have no effect for me?
all PHPDoc comments are still expanded when I open a PHP file
It's not real answer but:
This look like classic bug in sofware. You should report it on official eclipse bugzilla (https://bugs.eclipse.org). Please add to your bug some additional informations, like:
It's php project and/or external file?
Luna version (4.4.0 or 4.4.1)
Example (broken) file
Logs (if any)
Thank you.
Be sure that it's a "PHP file" from the perspective of your editor. I know some old file extensions are not recognized as such by default, so I had to add them to the configured list. I've not seen issues with folding in Luna since I started using it for PHP stuff a month ago.

Liclipse - Javascript

In the pydev liclipse editor how do add javascript folders so that it doesn't show errors in javascript files, such as $ is undefined (doesn't know jquery is also loaded when file is run).
I have tagged it with eclipse but this is a fork built around pydev "liclipse" so i don't see "javascript" as a project type.
TIA
Well, the LiClipse validator currently integrates JSHint internally (with Rhino), and there's no option to disable it...
Still, you can add a comment to the top of the file so that it knows that some symbols are expected to be undefined.
I.e.: if you add:
/*global $:false,alert:false*/
to the top of your file, the $ and alert symbols won't be triggered as not-defined.
I don't know anything about liclipse, so can't be certain my answer is correct. But I'd guess you will need to install some Javascript tooling in order to properly handle javascript code and projects. The options for Eclipse are not great, but there are JSDT and VJet.

jade templating syntax support for eclipse?

I have just starting using the nodejs templating engine jade. Unfortunately my IDE eclipse doesn't seem to have support for this syntax and is not highlighting correctly.
Is it possible to add support for .jade files to eclipse?
As current lead of Nodeclipse effort www.nodeclipse.org I announce that Nodeclipse v0.12 has added Minimalist Jade Editor, see http://www.nodeclipse.org/history. Added just before release as I got sick of .jade to be opened outside of Eclipse.
#134 - Minimalist Jade Editor
idea is to define HTML tags and JavaScript keywords as words for highlight in Word.java
and then use it together with EditBox
Nodeclipse scope is growing, now it has Gradle for Android and JavaScript in general that I want to work on for next iteration. Also looking for developers and company willing to support the project. Raise an issue on GitHub/Nodeclipse to continue.
check if this helps
Jade-syntax-highlight
Follow the pattern used for adding HAML support to an Eclipse install, and find a lexer and colorizer for Jade.