简体   繁体   中英

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)? If not, do you know of any option to add this to TextMate - a known plugin/macro? 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". 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 . It will use the number checked in the aforementioned menu.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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