atom遇到的问题及解决方法

问题一:git push不成功,又没有任何错误提示

在atom中push不成功,又没有任何错误提示。
在git bash中push,提示输入用户名和密码。
原因是使用了https协议,改成ssh协议可以解决此问题。

1.把~/.ssh/id_rsa.pub加到git的工程中
2.改协议

git remote -v
origin  https://github.com/windmissing/windmissing.github.io.git (fetch)
origin  https://github.com/windmissing/windmissing.github.io.git (push)

git remote rm origin

git remote add origin git@github.com:windmissi
ng/windmissing.github.io.git

git remote -v
origin  git@github.com:windmissing/windmissing.github.io.git (fetch)
origin  git@github.com:windmissing/windmissing.github.io.git (push)

问题二:安装package

参考《atom安装package遇到的问题》

问题三、中文不会自动换行

Settings -> Editor
勾选Soft Wrap

问题四、markdown文件保存后行尾的空格自动消失

markdown文件的行尾增加两个空格表示一行结束需要换行。
但保存文件后,行尾的空格自动消失,导致不换行。
Settings -> Packages -> whitespace
whitespace Settings -> Keep Markdown Line Break Whitespace勾选
若还不能解决,直接把这个插件禁用掉

问题五、一些实用的插件

名字作用git repo
Activate Power Modesubline的拉动效果https://github.com/JoelBesada/activate-power-mode.git
atom-beautify代码格式化https://github.com/Glavin001/atom-beautify.git
Atom HTML Preview实时预览html
file icons使左边的树形目录很好看
git plus更方便地使用git
markdown-scroll-sync Atom editor packagemarkdown的预览可以同步滚动
minimap缩略图
  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值