AtomWeb前端之路

Atom编辑器初步探索File篇

2016-06-20  本文已影响163人  青米央

编辑器菜单File:


File菜单
atom.workspace.observeTextEditors(editor) ->editor.onDidSave ->console.log "Saved! #{editor.getPath()}"
'atom-text-editor': 'enter':'editor:newline'

或者为工作空间设置:

'atom-workspace':
'ctrl-shift-p':'core:move-up'
'ctrl-p':'core:move-down'
'.source.html': 
    'Console log':
      'prefix': 'html''
      body': 'console.log $1'

解释:

'.source.js': 'if, else if, else': 'prefix': 'ieie' 'body': """ if (${1:true}) { $2 } else if (${3:false}) { $4 } else { $5 } """
js片段 设置后的效果
上一篇 下一篇

猜你喜欢

热点阅读