sublimetext3 - 崇高文本 : Change line endings of all files in a project

标签 sublimetext3 line-endings

Sublime Text 3 有一个非常有用的功能,可以在 View > Line Endings 下以文件为基础将 Windows 更改为 Unix 行尾。是否可以一次对整个项目和/或目录执行此操作?

谢谢

最佳答案

Line​Endings 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/

相关文章:

git 忽略行尾

sublimetext2 - 如何在 sublime 2 中为不同的文件类型添加图标

cmd - Sublime Text 3 - 在当前或项目目录中打开 CMD 提示 (Windows)

c++ - 如何在 sublime 构建文件中添加双引号?

Python 将\r 识别为行分隔符

visual-studio-2010 - 使用 git-svn 的行尾与来自两个 VCS 的提交不一致

sublimetext3 - 在聚焦其他组打开文件后如何将焦点恢复到快速面板?

ruby-on-rails - rails : `bundle open rails` command not opening rails gem folder

java - 如何规范化 Java 中的 EOL 字符?

windows - 在 Windows 上,如何检测文件的行尾?