How do I trigger Emmet expansion in Netbeans? - netbeans

I just installed the Emmet plugin for Netbeans, but I can't find in the docs how to trigger the code expansion.

You can expand code using the default "ctrl+cmd+N" on a mac.
I came across this question trying to find out if there was anyway that I could configure the code expansion to trigger by just using the "tab" key.
Anyways, I hope this helps someone!

I am using netbeans ver 8.1 in ubuntu 15.10.
After selecting your CSS code,use ctrl+alt+n to trigger emmet code completion.

You can't use the TAB key to expand abreviation from Emmet in Netbeans. Indeed if you chose the TAB key as shortcut for it, you will erase the shortcut for "Insert tab" and you will not be able to insert tabulation anymore...
The only way is to use the Code Templates in Netbeans and transform all the abreviation from Emmet into a code template, one by one :(
If you want, I've made the code templates for the CSS abreviations in Emmet (Only CSS). With that you can expand the abreviation just with TAB key.
Here is my Github (It's my first... I hope it will work well)
https://github.com/Everice/NetBeans---Emmet-Code-Templates.git

I am using Netbeans 8.1 and ctrl+alt+N working for me (My operating system is windows 10 )
you can use ctrl+cmd+N If you are using MAC

If you are using the newer Plugin from github.com/emmetio/netbeans (the old one is deprecated) You can set Emmet expansion by using the tab key.
The README in the github repo mentions this
Expand abbreviations with the TAB key. Go to Tools > Options > Miscellaneous > Emmet tab. Then check it.
And I can confirm it works for Netbeans11.

Related

Eclipse 4.12 comment out multiple lines in .gradle file with hotkey

Just installed a new version of Eclipse ("Eclipse IDE for Enterprise Java Developers", 2019-06 / 4.12.0) and I find that although the hotkeys Ctrl-Shift-C and Ctrl-/ work to toggle comments for blocks of code in .java files, as expected, this doesn't seem to work for my .gradle files for some unaccountable reason.
OS is Linux Mint 18.3.
Anyone know how one goes about tweaking this sort of functionality in Eclipse (i.e. so that this toggling also works in .gradle files)?
NB I also find that going Ctrl-Shift-L twice does NOT open up (as previously) the "preference page" (i.e. where you can edit key bindings). I hope they haven't messed up things here.
However you can still edit these bindings by going Windows --> Preferences --> General --> Keys. This shows no fewer than 20 (!) "Toggle Comment" bindings, with Ctrl+7, Shift+Ctrl+C and Ctrl+/. The "When" column includes things like "Editing Java Source" but also "Editing in Structured Text Editors", etc..
So I tried to add my own key binding with "When" at "Editing Text". No joy. Anyone at all familiar with this aspect of Eclipse functionality?
greg-449 has the right answer.
Therefore what you have to do is install the correct Groovy editor.
I in fact gave the answer about how to do this here in early 2018.
It has changed ever so slightly now (for Eclipse "2019-06"/4.12), as described in my update there.
When you install that Eclipse-Groovy editor it automatically applies the various normal editing functionality not only to .groovy files but also (out of the box) to .gradle files: syntax highlighting, toggling of comments, etc.
I did not think this worked and was about to uninstall it, then I tried selecting Open with > Groovy editor, Thought I would share a little more detail, thanks!

Is there any Plugin to disable "Auto ID on Paste" on Visual Studio 2013?

I saw This question about the "Auto ID on Paste" tool being unavailable on newer versions of Visual Studio, and I know about the workaround that is being currently used (comment a line, paste, undo comment)
But I'm not comfortable with those workarounds, I think it would be easier if I could just install one plugin that allows me to paste elements without generating IDs automatically.
Is there any plugin that does this?
To automate the workaround, you can create the following command in Visual Commander and assign a keyboard shortcut to it:
DTE.ExecuteCommand("Edit.CommentSelection")
DTE.ExecuteCommand("Edit.Paste")
DTE.ExecuteCommand("Edit.UncommentSelection")

How can I insert Rdoc comments in RubyMine

When I used Visual Studio I was used to inserting XML comments with just a few key presses at the beginning of the method definition (I think /// but it's been a while). Is there a way to insert an RDoc comment before a method inside of RubyMine out of the box? If so what is the keyboard shortcut?
I have a similar problem, and the default alt enter way is not very good. You have to alt enter many times, and the generated type is always Object.
So I write a plugin to do this trick,
And I have uploaded the plugin to JetBrains (Plugin Repository), you can search ruby-doc-adder to download and use it.
https://plugins.jetbrains.com/plugin/9904-ruby-doc-adder.
Also see the readme for usages.

Key binding shows shortcut list pop up even when only one option in Eclipse Juno

I installed Eclipse Juno and key binding does not seems to be working well. I mean, I did add a couple of key bindings.
Ctrl+B Build in Windows
Shift+Ctrl+B Build All in Windows
Shift+Alt+B Toggle Breakpoint in Debugging
But when I press Ctrl+B the typical pop up with both Build All and Build appears.
When swapping Build and Build All and pressing Ctrl+B does show the pop up with only one option (Build All).
Where are those bindings stored, so I can overwrite them directly?
Where does Eclipse store keyboard bindings?
You'll find where your bindings are stored at the above link. If you browse through the file indicated you should recognize your keybindings. What I found were a bunch of duplicate entries. Back up your file, so you don't screw yourself, and carefully edit out the duplicates--observe the pattern of the working keybindings. After this, I found that from the key editor inside eclipse it was still showing bindings that shouldn't be there (probably some type of caching mechanism). I removed these bindings through the editor, restarted, problem solved.
I have resolved the problem creating a new workspace and importing the projects all over again.
Not a nice solution but worked. FINALLY.

Workspace Editor Macros in Eclipse

Is there a way to record permanent workspace macros in Eclipse and assign them a shortcut key or template?
I'd like to automate some of the actions I routinely do. Workspace editor templates are not a solution since I need to include some conditional logic as well. For example check what is a symbol to the right/left of the cursor.
See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well.