Skip to content

Instantly share code, notes, and snippets.

@czlee
Last active July 17, 2021 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save czlee/a1637f8b64c06f45c592349ba1ae9314 to your computer and use it in GitHub Desktop.
Save czlee/a1637f8b64c06f45c592349ba1ae9314 to your computer and use it in GitHub Desktop.
Sublime settings
[
{ "keys": ["f5"], "command": "build" },
{ "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" },
{ "keys": ["alt+shift+b"], "command": "insert_snippet", "args": { "name": "Packages/User/Django-blocktrans.sublime-snippet" } },
{ "keys": ["alt+shift+v"], "command": "insert_snippet", "args": { "name": "Packages/User/Django-blocktrans-plural.sublime-snippet" } },
{ "keys": ["alt+shift+t"], "command": "insert_snippet", "args": { "name": "Packages/Djaneiro/html/trans.sublime-snippet" } },
]
<snippet>
<content><![CDATA[
{% blocktrans trimmed count ${1:count=} %}
${2:$SELECTION}
{% plural %}
$3
{% endblocktrans %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>btp</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
<snippet>
<content><![CDATA[
{% blocktrans trimmed %}
${1:$SELECTION}
{% endblocktrans %}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>bt</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
{
"preview_math_mode": "all",
"preview_math_background_color": "#1e0f40ff",
"preview_math_scale_quotient": 1.5,
"preview_math_template_preamble": [
"\\newcommand{\\tp}{\\mathsf{T}}",
],
"keep_focus": false,
"windows": {
"sublime_executable": "subl.exe",
}
}
{
"default_line_ending": "unix",
"draw_white_space": ["all_mixed", "selection", "trailing", "isolated"],
"font_face": "Ubuntu Mono",
"font_size": 12,
"ignored_packages":
[
"Vintage",
],
"line_padding_bottom": 1,
"rulers":
[
80,
100
],
"show_encoding": true,
"show_line_endings": true,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"theme": "auto",
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"dark_theme": "Default Dark.sublime-theme",
"light_theme": "Default.sublime-theme",
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment