atom改鍵方案 :
'atom-text-editor':
# 新建行
'shift-enter': 'editor:newline-below'
# 上 下 左 右
'ctrl-n':'core:move-down'
'ctrl-p':'core:move-up'
'ctrl-f':'core:move-right'
'ctrl-b':'core:move-left'
# 左 右一個(gè)單詞
'ctrl-shift-b': 'editor:move-to-beginning-of-word'
'ctrl-shift-f': 'editor:move-to-end-of-word'
# 復(fù)制當(dāng)前行 / 選中行 寫 HTML 時(shí)常用
'ctrl-g': 'editor:duplicate-lines'
# 移動(dòng)行
'shift-ctrl-i': 'editor:move-line-up'
'shift-ctrl-k': 'editor:move-line-down'
# 跳到行頭&尾
'ctrl-e': 'editor:move-to-end-of-screen-line'
'ctrl-a': 'editor:move-to-first-character-of-line'
# 刪除一個(gè)單詞
'ctrl-shift-h': 'editor:delete-to-beginning-of-word'
'ctrl-shift-d': 'editor:delete-to-end-of-word'
#刪除一個(gè)字母
'ctrl-h':'core:backspace'
#'ctrl-d':'core:delete'
#刪除一列
'ctrl-u': 'editor:delete-to-beginning-of-line'
'ctrl-k': 'editor:delete-to-end-of-line'
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor':
# 查找
'ctrl-i': 'find-and-replace:show'
'atom-workspace atom-text-editor':
# 全選
'alt-a':'core:select-all'
'body':
# 新建文件
'alt-n':'application:new-file'
插件安裝方式:
-
直接在atom上安裝
編輯器內(nèi)打開settings, 窗口打開后選擇 install 目錄,在右邊可以搜索下載插件沾歪,如果沒有代理,速度會(huì)很慢
-
手動(dòng)安裝
以minimap插件為例子
1 打開https://atom.io/packages 雾消,搜索你的插件灾搏, 打開會(huì)顯示如下圖挫望, 點(diǎn)擊 箭頭指向的Repo就會(huì)跳轉(zhuǎn)到github界面
2 直接點(diǎn)擊Download ZIP 下載下來
3 把壓縮文件解壓到圖片指向的目錄里, 目錄查看在atom的settings -> install 目錄里查看
4 進(jìn)入安裝目錄
C:\Users\admin\.atom\packages>cd minimap
5 安裝插件
C:\Users\admin\.atom\packages\atom-script>npm install
如果安裝過程中卡住狂窑,可能是網(wǎng)絡(luò)問題 把npm install 換成
npm install --registry=http://registry.npm.taobao.org
插件收集:
- autoprefixer CSS3 自動(dòng)補(bǔ)兼容前綴 的ATOM 插件
- minimap
- Sublime Style Column Selection 束行選擇件插