Skip to content

Instantly share code, notes, and snippets.

@rmzaki
Last active August 16, 2019 06:26
Show Gist options
  • Save rmzaki/bc463457f39c4e757e7a to your computer and use it in GitHub Desktop.
Save rmzaki/bc463457f39c4e757e7a to your computer and use it in GitHub Desktop.
SublimeText3

SublimeText3の設定

Mac向けだけどwinでもほぼ同じ
パッケージコントロールは入っている前提

パッケージコントロールのインストール

【Preferences.sublime-settings】

SublimeText > Preferences > Settings から編集画面を開く
2窓で開く(はず)
左側が使用できる設定の一覧(英語)、右は自分で設定を書くところ

オプション名 説明
color_scheme カラーテーマ
デフォルトだけじゃ物足りないなら
パッケージコントロールから落とす or 自分で作れ(下の方に説明あり)
font_face フォント
Ricty(リクティ) が人気
winは別にConsolasでよくね?
theme サイドバーのテーマ
color_schemeと紛らわしい

の箇所だけ注意
あとはそのままで多分OK


【導入パッケージ一覧.txt】

入れ方

特におすすめ

  • All Autocomplete     ... 標準の自動補完強化
  • AutoFileName ... ファイル名補完
  • BracketHighlighter ... タグの開始と終了をハイライト
  • ConvertToUTF8 ... 必須
  • DocBlockr ... /**を入力するだけでドキュメントを自動生成(PhpDocプラグインと競合すると動かん PhpDoc消せ)
  • TrailingSpaces ... 無駄な空白をハイライトしてくれる 独自設定必須
  • SideBarEnhancements ... サイドバーのコンテキストメニュー(=右クリックで出るメニュー)を拡張する
  • OmniMarkupPreviewer ... MarkDown書くなら必須
  • IMESupport           ... 日本語のインライン入力がしたいなら入れるべし(特にwin)
  • SyncedSideBar ... サイドバー上で今開いているファイルの位置に自動移動

TrailingSpacesの独自設定


【monokai_custom.thTheme】

自分で.thThemeファイルを作れるとこ
TmTheme Editor

monokai_custom.thThemeはMonokaiのテーマをいじってちょっと色味を地味にしたやつ
使いやすいかは人によりけり

/* ブロックコメント */// コメント に背景色がついたり、 カーソルを合わせてる行の色がちょこっと変わったりする

[入れ方]

SublimeText > Preferences > Browse Packages...
からSublimeText3の入っている箇所がFinderで開く

/Packages/User
以下にディレクトリを追加(追加しないと出なかった気がする)して、thThemeファイル入れると、

SublimeText > Preferences > Color Scheme > User
以下に追加したディレクトリが表示されるので、そこから独自テーマが選択できる

その他テーマについて

ぶっちゃけみんなデフォルトのMonokaiで満足っぽい
サイドバーは個人的には Seti_UI が好き

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Monokai</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
<dict>
<key>background</key>
<string>#272822</string>
<key>caret</key>
<string>#AEAFAD</string>
<key>foreground</key>
<string>#E3E3E3</string>
<key>invisibles</key>
<string>#4B4E55</string>
<key>lineHighlight</key>
<string>#3E3D32</string>
<key>selection</key>
<string>#49483E</string>
<key>findHighlight</key>
<string>#FFE792</string>
<key>findHighlightForeground</key>
<string>#000000</string>
<key>selectionBorder</key>
<string>#222218</string>
<key>activeGuide</key>
<string>#9D550FB0</string>
<key>bracketsForeground</key>
<string>#E3E3E3A5</string>
<key>bracketsOptions</key>
<string>underline</string>
<key>bracketContentsForeground</key>
<string>#E3E3E3A5</string>
<key>bracketContentsOptions</key>
<string>underline</string>
<key>tagsOptions</key>
<string>stippled_underline</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Comment</string>
<key>scope</key>
<string>comment</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#ddddddff</string>
<key>background</key>
<string>#627565ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>String</string>
<key>scope</key>
<string>string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#D9C638</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Number</string>
<key>scope</key>
<string>constant.numeric</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#349fbaff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Built-in constant</string>
<key>scope</key>
<string>constant.language</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9c7bd4ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>User-defined constant</string>
<key>scope</key>
<string>constant.character, constant.other</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#9c7bd4ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Variable</string>
<key>scope</key>
<string>variable</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
</dict>
</dict>
<dict>
<key>name</key>
<string>Keyword</string>
<key>scope</key>
<string>keyword - (source.c keyword.operator | source.c++ keyword.operator | source.objc keyword.operator | source.objc++ keyword.operator), keyword.operator.word</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cc6666ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JavaScript Dollar</string>
<key>scope</key>
<string>variable.other.dollar.only.js</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cc6666ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage</string>
<key>scope</key>
<string>storage</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#cc6666ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Storage type</string>
<key>scope</key>
<string>storage.type</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#86beccff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Entity name</string>
<key>scope</key>
<string>entity.name - (entity.name.filename | entity.name.section | entity.name.tag | entity.name.label)</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#bfe082ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Inherited class</string>
<key>scope</key>
<string>entity.other.inherited-class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic underline</string>
<key>foreground</key>
<string>#bfe082ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function argument</string>
<key>scope</key>
<string>variable.parameter - (source.c | source.c++ | source.objc | source.objc++)</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#FD971F</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Language variable</string>
<key>scope</key>
<string>variable.language</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#FD971F</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag name</string>
<key>scope</key>
<string>entity.name.tag</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#cc6666ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Tag attribute</string>
<key>scope</key>
<string>entity.other.attribute-name</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#bfe082ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Function call</string>
<key>scope</key>
<string>variable.function</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library function</string>
<key>scope</key>
<string>support.function</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library constant</string>
<key>scope</key>
<string>support.constant</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library class/type</string>
<key>scope</key>
<string>support.type, support.class</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>italic</string>
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Library variable</string>
<key>scope</key>
<string>support.other.variable</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string />
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid</string>
<key>scope</key>
<string>invalid</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#cc6666ff</string>
<key>fontStyle</key>
<string />
<key>foreground</key>
<string>#AEAFAD</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Invalid deprecated</string>
<key>scope</key>
<string>invalid.deprecated</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#349fbaff</string>
<key>foreground</key>
<string>#AEAFAD</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>JSON String</string>
<key>scope</key>
<string>meta.structure.dictionary.json string.quoted.double.json</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CFCFC2</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>YAML String</string>
<key>scope</key>
<string>string.unquoted.yaml</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#E3E3E3</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.header</string>
<key>scope</key>
<string>meta.diff, meta.diff.header</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#75715E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.deleted</string>
<key>scope</key>
<string>markup.deleted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#cc6666ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.inserted</string>
<key>scope</key>
<string>markup.inserted</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#bfe082ff</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>diff.changed</string>
<key>scope</key>
<string>markup.changed</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#D9C638</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>constant.numeric.line-number.find-in-files - match</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#349fbaffA0</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>entity.name.filename</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#D9C638</string>
</dict>
</dict>
<dict>
<key>scope</key>
<string>message.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#F83333</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Block comment</string>
<key>scope</key>
<string>source comment.block</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#748B91</string>
<key>foreground</key>
<string>#FFFFFF</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>SublimeLinter Error</string>
<key>scope</key>
<string>sublimelinter.mark.error</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f0ff</string>
</dict>
</dict><dict>
<key>name</key>
<string>SublimeLinter Warning</string>
<key>scope</key>
<string>sublimelinter.mark.warning</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#f8f8f0ff</string>
</dict>
</dict><dict>
<key>name</key>
<string>SublimeLinter Gutter Mark</string>
<key>scope</key>
<string>sublimelinter.gutter-mark</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#FFFFFF</string>
</dict>
</dict></array>
<key>uuid</key>
<string>D8D5E82E-3D5B-46B5-B38E-8C841C21347D</string>
<key>colorSpaceName</key>
<string>sRGB</string>
<key>semanticClass</key>
<string>theme.dark.monokai</string>
<key>author</key>
<string>m_l_r</string>
</dict>
</plist>
{
"auto_indent": true,
"color_scheme": "Packages/User/SublimeLinter/Original (SL).tmTheme",
"default_encoding": "UTF-8",
"draw_white_space": "all",
"fallback_encoding": "UTF-8",
"font_face": "Ricty",
"font_size": 17.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"line_padding_top": 5,
"shift_tab_unindent": true,
"show_encoding": true,
"show_line_endings": true,
"tab_size": 4,
"theme": "Seti.sublime-theme",
"translate_tabs_to_spaces": true,
"word_wrap": true
}
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"Alignment",
"All Autocomplete",
"AutoFileName",
"BracketHighlighter",
"Cobalt2 Flat Theme",
"ConvertToUTF8",
"DocBlockr",
"ElasticTabstops",
"Git blame",
"GitGutter",
"IMESupport",
"HTML5",
"jQuery",
"JSHint",
"Line Endings Unify",
"LiveReload",
"OmniMarkupPreviewer",
"Package Control",
"RecentActiveFiles",
"Seti_UI",
"Seti_UX",
"SideBarEnhancements",
"Sublime Files",
"SublimeCodeIntel",
"SublimeLinter",
"SyncedSideBar",
"Theme - Cobalt2",
"Theme - Flatland",
"Theme - Moka",
"Theme - Phoenix",
"Theme - Soda",
"TrailingSpaces"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment