简体   繁体   English

emacs像textmate中的fill-paragraph选项?

[英]emacs like fill-paragraph option in textmate?

Is there an option to reformat lines/paragraphs/selected text to 80 cols in TextMate like in emacs (fill-paragraph bound to Mq)? 是否可以像在emacs中一样将Text / Mate中的行/段落/选定文本重新格式化为80列(填充段落绑定到Mq)? If not, do you know of any option to add this to TextMate - a known plugin/macro? 如果不是,您是否知道将其添加到TextMate的任何选项-一个已知的插件/宏? any help in writing such a macro is most welcome too. 也非常欢迎编写这样的宏的任何帮助。 :) :)

It only changes how the text is displayed — not the text itself — but in the menu bar, "View" > "Wrap Column" > "78". 它仅更改文本的显示方式,而不是文本本身,而是在菜单栏中“视图”>“换行”>“ 78”。 Or choose "Other…", it displays a vertical ruler you can move to the desired column. 或选择“其他…”,它会显示一个垂直标尺,您可以将其移至所需的列。

If the "Soft Wrap" option is checked, your text will look like it's reformated. 如果“软换行”选项被选中,你的文本会看起来它重新格式化。

To reformat the text for real, simply hit ctrl q . 要将文本重新格式化为真实文本,只需按ctrl q即可 It will use the number checked in the aforementioned menu. 它将使用上述菜单中检查的号码。

如果您想要对段落进行自动包装,请参见此处: http : //lists.macromates.com/textmate/2006-November/015707.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM