Tag Archives: Textmate

Textmate 2.0.0-alpha.9317 Adds Support For Removing Trailing Spaces in Document / Selection

更新摘要:

2012-09-29 (r9317)
New semantic class: callback.document.will-save. This can be used to have a command called prior to saving a document, the command could e.g. strip trailing whitespace or ensure the document has a LF character on last line. Two minor issues is that selection is currently lost after running a “did save” command (when it replaces entire document) and caret is scrolled into the visible area.

相关 bundle 设置: