idea编辑的文件转换换行的问题
1:检查git配置。
确保git的全局配置、系统配置保持一致的crlf,比如:autocrlf = true
我公司要求autocrlf = false,我建议用true较好,网上一搜都是true。
2:idea设置
setting -> code style
换行符自定,注意codestyle中红色框的选项。idea默认是勾选的,如果默认情况下换行符正常,可以不用理会,如果当你使用idea编辑文件时,当文件保存的时候就会自动把文件换行符由LF改为CRLF(我是这种情况),此时去掉红色框的勾即可,下面有句话说的是editorconfig可能会覆盖ide的codestyle配置。慎选。
转载:https://www.cnblogs.com/wulm/p/12146603.html
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.
Quick Start
Create a new post
1 | $ hexo new "My New Post" |
More info: Writing
Run server
1 | $ hexo server |
More info: Server
Generate static files
1 | $ hexo generate |
More info: Generating
Deploy to remote sites
1 | $ hexo deploy |
More info: Deployment