Atom配置

作者: JetLu | 来源:发表于2016-04-01 13:56 被阅读2140次

snippets


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

'.source.php':
  'main':
    'prefix': 'main'
    'body': '<?php\n\t$1\n?>'
  'html':
    'prefix': 'html'
    'body': '<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta charset="utf-8">\n\t\t<meta name="full-screen" content="yes">\n\t\t<meta name="x5-fullscreen" content="true">\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">\n\t\t<link rel="icon" href="" type="image/x-icon">\n\t\t<link rel="stylesheet" href="" charset="utf-8">\n\t</head>\n\t<body>\n\t\t$1\n\t</body>\n</html>'

'.text.html.basic':
  'html':
    'prefix': 'html'
    'body': '<!DOCTYPE html>\n<html>\n\t<head>\n\t\t<title></title>\n\t\t<meta charset="utf-8">\n\t\t<meta name="full-screen" content="yes">\n\t\t<meta name="x5-fullscreen" content="true">\n\t\t<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">\n\t\t<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">\n\t\t<link rel="icon" href="https://cdn.lufei.so/icon/favicon.ico" type="image/x-icon">\n\t\t<link rel="stylesheet" href="https://cdn.lufei.so/css/font.css" charset="utf-8">\n\t</head>\n\t<body>\n\t</body>\n</html>'

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;
}

相关链接


截图


示例

相关文章

  • Atom配置

    snippets config.cson keymap.cson styles.less 相关链接 Basic C...

  • Atom 配置

    1. atom 修改快捷键 ( 在 setting > keybindings > your keymap fil...

  • atom 配置

    atom-ternjs 自动补全工具 配置参数 比如一份最简单的 .tern-project 文件的示例:

  • ubuntu latex

    latex配置进度 latex_atom 仅仅只能编译英文,中文的解决方案没找到 配置ATOM_latex报错 c...

  • markdown 使用笔记

    编辑器的配置 上atom! atom大法好!setting (快捷键 ctrl+,) 页面直接安装 markdow...

  • Mac本地配置hexo + Atom Markdown,连接Gi

    本篇主要内容如下: hexo Atom markdown环境配置和使用 本地配置hexo环境 选择并配置hexo ...

  • git permission deny 问题解决

    针对ATOM 的git plus, Mac电脑,git 配置完成后,atom 内的git-push无效问题的解决方...

  • 我的 Atom 插件,有图

    难得要把自己的Atom插件总结一下,免得以后去别的网站找插件配置,这个文章基本会一直记录我的atom。 atom-...

  • atom配置pythonIDE

    安装 https://atom.io/ 运行 安装script插件:运行代码时使用,安装成功后,可以打开.py文件...

  • ATOM基础

    ATOM基础现在Atom已安装在您的系统上,让我们启动它,配置它并熟悉编辑器。当您第一次启动Atom时,您应该得到...

网友评论

    本文标题:Atom配置

    本文链接:https://www.haomeiwen.com/subject/umrylttx.html