【发布时间】:2016-04-27 14:42:01
【问题描述】:
Sublime Text 3 有一个非常有用的功能,可以在View > Line Endings 下根据每个文件将 Windows 换行到 Unix。是否可以一次为整个项目和/或目录执行此操作?
谢谢
【问题讨论】:
Sublime Text 3 有一个非常有用的功能,可以在View > Line Endings 下根据每个文件将 Windows 换行到 Unix。是否可以一次为整个项目和/或目录执行此操作?
谢谢
【问题讨论】:
LineEndings plugin / package 很小,但工作起来就像一个魅力 访问它的 GitHub 存储库以获取一些详细信息,因为在它的包控制页面上没有描述。
它不仅有效,还为您提供了一项附加功能——您不仅可以更改行尾,还可以一步更改所有打开文件的缩进方式。
安装后:
1-Open all files, in which you want to convert / change line endings and/or indentation method.
2-Press Ctrl+Shift+P, to bring Command Pallete and start typing lin to locate Line Ending to all views: Windows (for example).
3-Select it, hit Enter, and... you're done!
4-Repeat step 2, but type spaces to locate Indentation: Convert to all views to Spaces or tabs to locate Indentation: Convert to all views to Tabs to change indentation method of all open files.
【讨论】: