快捷键
自己用eclipse开发时间较长,快捷键还是习惯使用eclipse的
[
{ "keys": ["command+enter"], "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"} },
{ "keys": ["command+/"], "command": "auto_complete" },//自动提示
{ "keys": ["option+up"], "command": "swap_line_up" },//整行上移
{ "keys": ["option+down"], "command": "swap_line_down" },//整行下移
{ "keys": ["ctrl+shift+left"], "command": "jump_back" },//跳转到上一个编辑处
{ "keys": ["ctrl+shift+right"], "command": "jump_forward" },
{ "keys": ["ctrl+alt+j"], "command": "join_lines" },
{ "keys": ["command+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },//整行删除
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
{ "keys": ["ctrl+o"], "command": "show_overlay", "args": {"overlay": //跳转到当前的某个方法
"goto", "text": "@"} },
{ "keys": ["ctrl+up"], "command": "goto_definition" },//跳转到定义,比如在某个函数上按此键,则跳转到它的定义。
{ "keys": ["ctrl+down"], "command": "find_under_prev" },//选中光标所在的变量或者函数,非常有用
{ "keys": ["ctrl+shift+down"], "command": "duplicate_line" },//向下复制整行
{"keys": ["ctrl+shift+f"], "command": "reindent" , "args":{"single_line": //格式化代码,当然也可以利用html+css+js prettify插件来格式化
false}},
{ "keys": ["ctrl+shift+r"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
{ "keys": ["command+shift+s"], "command": "save_all" },
{ "keys": ["ctrl+shift+f4"], "command": "close_all" },
{ "keys": ["ctrl+shift+u"], "command": "lower_case" },
{ "keys": ["command+shift+u"], "command": "upper_case" }
]
主题设置 mariana
{
"name": "Mariana",
"author": "Sublime HQ Pty Ltd, Dmitri Voronianski",
"variables":
{
"black": "hsl(0, 0%, 0%)",
"blue": "hsl(210, 50%, 60%)",
"blue-vibrant": "hsl(210, 60%, 60%)",
"blue2": "hsla(210, 13%, 40%, 0.7)",
"blue3": "hsl(210, 15%, 22%)",
"blue4": "hsl(210, 13%, 45%)",
"blue5": "hsl(180, 36%, 54%)",
"blue6": "hsl(221, 12%, 69%)",
"green": "hsl(114, 31%, 68%)",
"grey": "hsl(0, 0%, 20%)",
"orange": "hsl(32, 93%, 66%)",
"orange2": "hsl(32, 85%, 55%)",
"orange3": "hsl(40, 94%, 68%)",
"pink": "hsl(300, 30%, 68%)",
"red": "hsl(357, 79%, 65%)",
"red2": "hsl(13, 93%, 66%)",
"white": "hsl(0, 0%, 100%)",
"white2": "hsl(0, 0%, 97%)",
"white3": "hsl(219, 28%, 88%)"
},
"globals":
{
"foreground": "var(white3)",
"background": "var(blue3)",
"accent": "var(blue-vibrant)",
"caret": "var(orange)",
"line_highlight": "var(blue2)",
"selection": "var(blue2)",
"selection_border": "var(blue4)",
"inactive_selection": "var(blue2)",
"misspelling": "var(red)",
"shadow": "color(var(black) alpha(0.25))",
"active_guide": "var(blue5)",
"stack_guide": "color(var(blue5) alpha(0.5))",
"highlight": "var(blue5)",
"find_highlight_foreground": "var(grey)",
"find_highlight": "var(orange3)",
"brackets_options": "underline",
"brackets_foreground": "var(orange)",
"bracket_contents_options": "underline",
"bracket_contents_foreground": "var(blue5)",
"tags_options": "stippled_underline",
"tags_foreground": "var(pink)"
},
"rules":
[
{
"name": "Comment",
"scope": "comment, punctuation.definition.comment",
"foreground": "var(blue6)"
},
{
"name": "String",
"scope": "string",
"foreground": "var(green)"
},
{
"name": "Punctuation",
"scope": "punctuation.definition - punctuation.definition.numeric.base",
"foreground": "var(blue5)"
},
{
"name": "Number",
"scope": "constant.numeric",
"foreground": "var(orange)"
},
{
"name": "Number Suffix",
"scope": "storage.type.numeric",
"foreground": "var(pink)",
"font_style": "italic"
},
{
"name": "Built-in constant",
"scope": "constant.language",
"foreground": "var(red)",
"font_style": "italic"
},
{
"name": "User-defined constant",
"scope": "constant.character, constant.other",
"foreground": "var(pink)"
},
{
"name": "Member Variable",
"scope": "variable.member",
"foreground": "var(red)"
},
{
"name": "Keyword",
"scope": "keyword - keyword.operator, keyword.operator.word",
"foreground": "var(pink)"
},
{
"name": "Operators",
"scope": "keyword.operator",
"foreground": "var(red2)"
},
{
"name": "Punctuation",
"scope": "punctuation.separator, punctuation.terminator",
"foreground": "var(blue6)"
},
{
"name": "Punctuation",
"scope": "punctuation.section",
"foreground": "var(white)"
},
{
"name": "Accessor",
"scope": "punctuation.accessor",
"foreground": "var(blue6)"
},
{
"name": "Annotation Punctuation",
"scope": "punctuation.definition.annotation",
"foreground": "var(blue5)"
},
{
"name": "JavaScript Dollar",
"scope": "variable.other.dollar.only.js, variable.other.object.dollar.only.js, variable.type.dollar.only.js, support.class.dollar.only.js",
"foreground": "var(blue5)"
},
{
"name": "Storage",
"scope": "storage",
"foreground": "var(red)"
},
{
"name": "Storage type",
"scope": "storage.type",
"foreground": "var(pink)",
"font_style": "italic"
},
{
"name": "Entity name",
"scope": "entity.name.function",
"foreground": "var(blue5)"
},
{
"name": "Entity name",
"scope": "entity.name - (entity.name.section | entity.name.tag | entity.name.label)",
"foreground": "var(orange)"
},
{
"name": "Inherited class",
"scope": "entity.other.inherited-class",
"foreground": "var(blue5)",
"font_style": "italic"
},
{
"name": "Function argument",
"scope": "variable.parameter",
"foreground": "var(orange)"
},
{
"name": "Language variable",
"scope": "variable.language",
"foreground": "var(red)",
"font_style": "italic"
},
{
"name": "Tag name",
"scope": "entity.name.tag",
"foreground": "var(red)"
},
{
"name": "Tag attribute",
"scope": "entity.other.attribute-name",
"foreground": "var(pink)"
},
{
"name": "Function call",
"scope": "variable.function, variable.annotation",
"foreground": "var(blue)"
},
{
"name": "Library function",
"scope": "support.function, support.macro",
"foreground": "var(blue)",
"font_style": "italic"
},
{
"name": "Library constant",
"scope": "support.constant",
"foreground": "var(pink)",
"font_style": "italic"
},
{
"name": "Library class/type",
"scope": "support.type, support.class",
"foreground": "var(blue)",
"font_style": "italic"
},
{
"name": "Invalid",
"scope": "invalid",
"foreground": "var(white2)",
"background": "var(red)"
},
{
"name": "Invalid deprecated",
"scope": "invalid.deprecated",
"foreground": "var(white2)",
"background": "var(orange2)"
},
{
"name": "YAML Key",
"scope": "entity.name.tag.yaml",
"foreground": "var(blue5)"
},
{
"name": "YAML String",
"scope": "source.yaml string.unquoted",
"foreground": "var(white3)"
},
{
"name": "markup headings",
"scope": "markup.heading",
"font_style": "bold"
},
{
"name": "markup headings",
"scope": "markup.heading punctuation.definition.heading",
"foreground": "var(red2)"
},
{
"name": "markup h1",
"scope": "markup.heading.1 punctuation.definition.heading",
"foreground": "var(red)"
},
{
"name": "markup links",
"scope": "string.other.link, markup.underline.link",
"foreground": "var(blue)"
},
{
"name": "markup bold",
"scope": "markup.bold",
"font_style": "bold"
},
{
"name": "markup italic",
"scope": "markup.italic",
"font_style": "italic"
},
{
"name": "markup underline",
"scope": "markup.underline",
"font_style": "underline"
},
{
"name": "markup bold/italic",
"scope": "markup.italic markup.bold | markup.bold markup.italic",
"font_style": "bold italic"
},
{
"name": "markup bold/underline",
"scope": "markup.underline markup.bold | markup.bold markup.underline",
"font_style": "bold underline"
},
{
"name": "markup italic/underline",
"scope": "markup.underline markup.italic | markup.italic markup.underline",
"font_style": "italic underline"
},
{
"name": "markup bold/italic/underline",
"scope": "markup.bold markup.italic markup.underline | markup.bold markup.underline markup.italic | markup.italic markup.bold markup.underline | markup.italic markup.underline markup.bold | markup.underline markup.bold markup.italic | markup.underline markup.italic markup.bold",
"font_style": "bold italic underline"
},
{
"name": "markup hr",
"scope": "punctuation.definition.thematic-break",
"foreground": "var(orange)"
},
{
"name": "markup numbered list bullet",
"scope": "markup.list.numbered.bullet",
"foreground": "var(green)"
},
{
"name": "markup blockquote",
"scope": "markup.quote punctuation.definition.blockquote, markup.list punctuation.definition.list_item",
"foreground": "var(orange)"
},
{
"name": "markup code",
"scope": "markup.raw",
"background": "color(var(blue2) alpha(0.38))"
},
{
"name": "markup code",
"scope": "markup.raw.inline",
"background": "color(var(blue2) alpha(0.5))"
},
{
"name": "markup punctuation",
"scope": "(text punctuation.definition.italic | text punctuation.definition.bold)",
"foreground": "var(pink)"
},
{
"name": "diff.header",
"scope": "meta.diff, meta.diff.header",
"foreground": "var(pink)"
},
{
"name": "diff.deleted",
"scope": "markup.deleted",
"foreground": "var(red)"
},
{
"name": "diff.inserted",
"scope": "markup.inserted",
"foreground": "var(green)"
},
{
"name": "diff.changed",
"scope": "markup.changed",
"foreground": "var(orange)"
},
{
"name": "CSS Properties",
"scope": "support.type.property-name",
"foreground": "var(white3)"
},
{
"scope": "constant.numeric.line-number.match",
"foreground": "var(red)"
},
{
"scope": "message.error",
"foreground": "var(red)"
},
{
"scope": "diff.deleted",
"background": "hsla(357, 45%, 60%, 0.15)",
"foreground_adjust": "l(+ 5%)"
},
{
"scope": "diff.deleted.char",
"background": "hsla(357, 60%, 60%, 0.30)",
"foreground_adjust": "l(+ 10%)"
},
{
"scope": "diff.inserted",
"background": "hsla(180, 45%, 60%, 0.15)",
"foreground_adjust": "l(+ 5%)"
},
{
"scope": "diff.inserted.char",
"background": "hsla(180, 60%, 60%, 0.30)",
"foreground_adjust": "l(+ 10%)"
},
]
}
自定义 mariana
{
"variables":
{
"black3": "hsl(70, 8%, 15%)",
"yellow4": "hsl(55, 11%, 22%)"
},
"globals":
{
"background": "var(black3)",
"line_highlight": "var(yellow4)"
},
"rules":
[
]
}
自定义
{
"variables":
{
"black3": "hsl(70, 8%, 15%)",
"yellow4": "hsl(55, 11%, 22%)",
"green1": "hsl(60, 30%, 50%)",
"blue8": "hsl(221, 50%, 69%)",
},
"globals":
{
"background": "var(black3)",
"line_highlight": "var(yellow4)",
"foreground": "var(blue8)",
},
"rules":
[
]
}