ctrl/cmd + shift + p,输入 snip,选择 Application: Open Your Snippts.格式参考下面的引用示例.
我们会尽快把相关自定义代码片段,快捷键的指令,放到顶部菜单下.大家的自定义需求,还是挺多的.
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# Each scope (e.g. '.source.coffee' above) can only be declared once.
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it in the
# Atom Flight Manual:
# http://flight-manual.atom.io/usi ... ustomization/#_cson
'.source.js':
'console.log2':
'prefix': 'log'
'body': 'console.log(${1:"crash"});$2'
'console.lo2g2':
'prefix': 'log'
'body': 'console.log(${1:"crash"});$2'