Sublime Text 3有一个非常有用的功能,可以在View
>下的每个文件的基础上将Windows更改为Unix行结尾。 Line Endings
。是否可以立即对整个项目和/或目录执行此操作?
由于
答案 0 :(得分:2)
LineEndings plugin / package很小,但就像魅力一样访问它的GitHub存储库以获取一些细节,因为在其Package Control页面上没有描述。
它不仅有效,而且还提供了额外的功能 - 您不仅可以一步更改行结尾,还可以更改所有打开文件的缩进方法。
安装后:
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.