Is it possible to display a right-margin line at 80 characte开发者_StackOverflow中文版rs in TextMate? (i.e. the right-margin line in eclipse, gedit, etc.) If so, how can I configure that?
Figured it out:
In the View menu, uncheck 'Soft Wrap'. Then, go to View -> Wrap Column -> Other... and select the column at 80 chars in your editor window.
This will show the line at 80 characters, but won't force wrapping at 80 chars. (Turning 'Soft Wrap' back on will force wrapping.)
What about Visual Ornaments/Show right margin indicator in Preferences?
For TextMate 2 it looks like this has moved to View -> Show Wrap Column.
So the column can be set at View -> Wrap Column, then shown/hidden using View -> Show/Hide Wrap Column.
精彩评论