What is the command to match brackets in Emacs?

后端 未结 5 1561
盖世英雄少女心
盖世英雄少女心 2020-12-12 20:55

What is the command to match brackets in Emacs (the equivalent of the % command in Vim)?

5条回答
  •  死守一世寂寞
    2020-12-12 21:16

    C-M-f, or M-x forward-sexp, goes forward to the closing brace, or to the opening brace in the next set of braces. C-M-b, or M-x backward-sexp, goes backward to the opening brace, or to the closing brace in the next set of braces. These commands will work for parentheses, square brackets, curly braces, angle brackets, etc., and can be customized to recognize other delimiters.

提交回复
热议问题