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.
关于sublimetext3 - 崇高文本 : Change line endings of all files in a project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36893167/