Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

gitxyf/smart_code_copier

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
2 Commits
 
 
 
 
 
 

Repository files navigation

Smart Code Copier

简介

Smart Code Copier是一个好用的源码拷贝工具,提供功能:

  • tab转空格
  • gb2312编码转utf-8
  • 去掉行尾空白字符
  • 统一单个文件内换行符

当需要把多个文件按上述编码风格统一配置时,尽管有.editorconfig工具可用,但它似乎对已有源码文件并不生效,此时可以使用本工具执行转换。

提供功能:

  • 单个文件的转换
  • 整个目录的转换
  • 指定\t对齐到的空格长度

注意

如果你的源文件是UTF-8编码、中文显示正确、仅需要替换\t为空格、处于Linux环境下,则可直接使用expand命令。例如:

expand -t 4 compute_flops_tf_pb.py > compute_flops_tf_pb_new.py

协议

MIT

About

Copy source file(s) smartly

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.