开发者

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 M-q)? 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 ctrlq. It will use the number checked in the aforementioned menu.


If what you want is to hard-wrap paragraphs see here: http://lists.macromates.com/textmate/2006-November/015707.html

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜