SublimeText:更改项目中所有文件的行尾
SublimeText: Change line endings of all files in a project
Sublime Text 3 有一个非常有用的功能,可以在 View
> Line Endings
下逐个文件将 Windows 更改为 Unix 行尾。是否可以一次对整个项目 and/or 目录执行此操作?
谢谢
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.
Sublime Text 3 有一个非常有用的功能,可以在 View
> Line Endings
下逐个文件将 Windows 更改为 Unix 行尾。是否可以一次对整个项目 and/or 目录执行此操作?
谢谢
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.