Atom配置

snippets


'.source.python':
  'main':
    'prefix': 'main'
    'body': 'if __name__ == \'__main__\':'

'.source.php':
  'main':
    'prefix': 'main'
    'body': ''
  'html':
    'prefix': 'html'
    'body': '\n\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\t$1\n\t\n'

'.text.html.basic':
  'html':
    'prefix': 'html'
    'body': '\n\n\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\n\t\n'

config.cson


"*":
  "autocomplete-plus": {}
  core:
    autoHideMenuBar: true
    automaticallyUpdate: false
    customFileTypes:
      "text.html.basic": [
        "vue"
      ]
  editor:
    fontFamily: "Consolas, Microsoft YaHei"
    fontSize: 16
    invisibles: {}
    preferredLineLength: 120
    scrollPastEnd: true
    showIndentGuide: true
    softWrap: true
    softWrapAtPreferredLineLength: true
    tabLength: 4
    zoomFontWhenCtrlScrolling: false
  "exception-reporting":
    userId: "ca4a411d-201d-cc60-1a15-2b401cadac3c"
  "find-and-replace": {}
  "one-dark-ui": {}
  "tree-view": {}
  welcome:
    showOnStartup: false
".coffee.source":
  editor:
    tabLength: 2

keymap.cson


'atom-text-editor':
  'delete': 'editor:delete-line'
  'ctrl-b': 'editor:toggle-line-comments'
  'f1': 'bookmarks:toggle-bookmark'

'body':
  'ctrl-w': 'pane:close'

'atom-workspace atom-text-editor:not([mini])':
  'ctrl-up': 'editor:upper-case'
  'ctrl-down': 'editor:lower-case'
  'ctrl-[': 'editor:fold-all'
  'ctrl-j': 'autocomplete-plus:activate'
  'ctrl-]': 'editor:unfold-all'

'.platform-win32 atom-text-editor':
  'ctrl-r': 'script:run-with-profile'

styles.less


.tree-view {
  // background-color: whitesmoke;
}

// style the background and foreground colors on the atom-text-editor-element itself
atom-text-editor::shadow .indent-guide {
    color: rgba(229, 192, 123, 0.5) !important;
}

// To style other content in the text editor's shadow DOM, use the ::shadow expression
atom-text-editor::shadow .cursor {
  // border-color: red;
}

相关链接


  • Basic Customization
  • file-types

截图


Atom配置_第1张图片
示例

你可能感兴趣的:(Atom配置)