我的Sublime设置

写在这里,免得每次在一个新的地方又要重新网上找相关资料。

sublime text 3 package control install:

import urllib.request,os; pf = ‘Package Control.sublime-package’; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), ‘wb’).write(urllib.request.urlopen( ‘http://sublime.wbond.net/’ + pf.replace(‘ ‘,’%20’)).read())

常用插件

Alignment
Anaconda
ConvertToUTF8
SideBarEnhancements
InsertDate
SublimeREPL
BracketHighlighter
Modific
Function Name Display

常用User Setting:

{
	"caret_style": "phase",
	"default_line_ending": "unix",
	"ensure_newline_at_eof_on_save": true,
	"font_size": 16,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage"
	],
	"tab_size": 4,
	"translate_tabs_to_spaces": true,
	"trim_trailing_white_space_on_save": true
}

Lua:

BuildSystem

{
    "shell_cmd": "lua $file $file_base_name",
    "working_dir" : "$folder",
    "file_regex": "^(?:lua:)?[\t ](...*?):([0-9]*):?([0-9]*)",
    "selector": "source.lua"
}

python:

syntax setting:

{
    "default_line_ending": "unix",
    "ensure_newline_at_eof_on_save": true,
    "tab_size": 2,
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true
}

Scheme(SCM):

[
     {
        "id": "tools",
        "children":
        [{
            "caption": "SublimeREPL",
            "mnemonic": "R",
            "id": "SublimeREPL",
            "children":
            [
                {"caption": "Scheme",
                 "id": "Scheme",

                 "children":[
                    {"command": "repl_open",
                     "caption": "Scheme",
                     "id": "repl_scheme",
                     "mnemonic": "S",
                     "args": {
                        "type": "subprocess",
                        "encoding": "utf8",
                        "external_id": "scheme",
                        "cmd": {"linux": ["scheme"],
                                "osx": ["scheme"],
                                "windows": ["scm", "-f", "$file_basename"]},
                        "soft_quit": "\nexit\n",
                        "cwd": "$folder",
                        "cmd_postfix": "\n",
                        "extend_env": {"INSIDE_EMACS": "1"},
                        "syntax": "Packages/sublime-scheme-syntax/Scheme.tmLanguage"
                        }
                    },
                    {"command": "repl_open",
                     "caption": "Gauche",
                     "id": "repl_gauche",
                     "mnemonic": "G",
                     "args": {
                        "type": "subprocess",
                        "encoding": "utf8",
                        "external_id": "gauche",
                        "cmd": {"linux": ["gosh", "-i"],
                                "osx": ["gosh", "-i"],
                                "windows": ["gosh", "-i"]},
                        "soft_quit": "\n(exit)\n",
                        "cwd": "$folder",
                        "cmd_postfix": "\n",
                        "extend_env": {"INSIDE_EMACS": "1"},
                        "syntax": "Packages/Gauche/Gauche.tmLanguage"
                        }
                    },
                    {"command": "repl_open",
                     "caption": "Petite Chez Scheme",
                     "id": "repl_petite",
                     "mnemonic": "P",
                     "args": {
                        "type": "subprocess",
                        "encoding": "utf8",
                        "external_id": "petite",
                        "cmd": {"linux": ["petite"],
                                "osx": ["petite"],
                                "windows": ["petite"]},
                        "soft_quit": "\n(exit)\n",
                        "cwd": "$folder",
                        "cmd_postfix": "\n",
                        "extend_env": {"INSIDE_EMACS": "1"},
                        "syntax": "Packages/sublime-scheme-syntax/Scheme.tmLanguage"
                        }
                    }
                ]}
            ]
        }]
    }
]

REPL:

[
    {
        "keys":["f5"],
        "caption": "SublimeREPL: Python - RUN current file",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_python_run",
            "file": "config/Python/Main.sublime-menu"
        }
    },
    {
        "keys":["alt+r"],
        "caption": "SublimeREPL: Scheme",
        "command": "run_existing_window_command", "args":
        {
            "id": "repl_scheme",
            "file": "config/Scheme/Main.sublime-menu"
        }
    }
]

发表评论

电子邮件地址不会被公开。