【问题标题】:SublimeText: Change line endings of all files in a projectSublimeText:更改项目中所有文件的行尾
【发布时间】:2016-04-27 14:42:01
【问题描述】:

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

谢谢

【问题讨论】:

    标签: sublimetext3 line-endings


    【解决方案1】:

    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.
    

    【讨论】:

      猜你喜欢
      • 2018-10-11
      • 2017-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-28
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多