When editing an HTML file, if the cursor is on the opening tag, the corresponding tag is highlighted in the editor. I would like to be able to match a keyboard shortcut like alt + → (or something else) to go to the closing tag. I searched for an existing action like this in tools-> options-> keymap, but did not find it, so I decided to try to create a macro for it, I found that I can do this in several ways: ctrl + / (minimize code), → , ctrl + * (deploy code). I recorded a macro of this and he created this code:
collapse-fold-tree caret-forward expand-fold-tree
Unfortunately, when I run the macro, the cursor stays in the same place, and does not end at the end of the closing tag, as is done in the manual steps. I successfully created a macro that moves from the closing tag to the opening tag:
collapse-fold-tree expand-fold-tree
but I can’t make it work forward. I also have a bad feeling that I just missed the action in the keyboard settings and am now trying to invent this wheel. Is this an action that already exists? And if not, does anyone know how I can make a macro work?
netbeans keyboard-shortcuts html-editor
Don't panic
source share