keyboard shortcuts - How to move the cursor to the end of the tag in Sublime Text 2? -


when type start of tag, sublime text auto-complete end of tag , position cursor inside tag.

<code>|</code>

i use | represent cursor. when finished contents inside tag, want move cursor end of tag this:

<code>blabla</code>|

to this, have press right button move cursor character character, not efficient. there shortcut move cursor end of tag directly?

you create macro. may valuable if tags cover multiple lines. save following move_to_end_tag.sublime-macro in packages/user.

[     {         "args":         {             "to": "tag"         },         "command": "expand_selection"     },     {         "args":         {             "by": "characters",             "forward": true         },         "command": "move"     } ] 

you can create keybinding action.

{      "keys": ["ctrl+shift+alt+right"],      "command": "run_macro_file",      "args": {"file": "res://packages/user/move_to_end_tag.sublime-macro"}  } 

of course, can change keys whatever like.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -