有没有办法自动修复Emacs中缺少的括号? M-x固定支架? [英] Is there a way to automate fixing missing parens in Emacs? M-x fix-parens?
本文介绍了有没有办法自动修复Emacs中缺少的括号? M-x固定支架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在发现以前的问题,修复缺失的价值 - 支持模式,一个注释提出了自动化查找和添加缺失或额外括号的过程是很好的。
After finding out about emacs' check-parens and show-parens modes in a previous question, the value of a fix-missing-parens mode, a comment raised the point that it would be nice to automate the process of finding and adding missing or extra parens.
有没有办法自动修复这种不匹配括号?
Is there a way to automate fixing such mismatched parens?
推荐答案
标记一个区域并调用 Mx缩进区域
- 将缩进包含括号(和更多)的代码。
Mark a region and call M-x indent-region
-- that will indent the code which comprises parens (and more).
这篇关于有没有办法自动修复Emacs中缺少的括号? M-x固定支架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文