Matching braces in Emacs

前端 未结 5 1992
孤独总比滥情好
孤独总比滥情好 2021-02-18 20:56

In GNU Emacs there is a feature to highlight matching brackets in code with the same colour.

However when the code which the brackets enclose is really long with severa

5条回答
  •  爱一瞬间的悲伤
    2021-02-18 21:44

    This is actually a very standard binding: C-M-f and C-M-b to go back and forwards by default. In most modes C-M-f will take you forwards to the matching brace and C-M-b will take you backwards to the matching brace. This also works for things like quotes, pretty much the same way.

    These bindings are easy to remember if you already use C-f and C-b for navigation. (If you don't, you should.) They're just like moving forward and backwards by a character lifted to moving by expression (which depends on mode).

提交回复
热议问题