是否可以在 emacs 中自动完成括号或引号? [英] Is it possible to auto-complete parentheses or quotation marks in emacs?
本文介绍了是否可以在 emacs 中自动完成括号或引号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
I've used XCode and Netbeans, and I've noticed that they have a feature to automatically complete quotation marks or parentheses (and I assume that other IDEs often do this also). I don't know what the name of this feature is, but is there any way to do this in Emacs?
For example, when I type
printf("
I would like it to automatically input
printf("")
placing the cursor in between the quotation marks.
Thank you.
解决方案
The basic variant would be AutoPairs. The same effect but a little more sophisticated can also be achieved with YASnippet.
这篇关于是否可以在 emacs 中自动完成括号或引号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文