- Package control
View -> Show Console
import urllib2,os;pf= 'Package Control.sublime-package' ;ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None; open (os.path. join (ipp,pf), 'wb' ).write(urllib2.urlopen( ' http://sublime.wbond.net/ ' +pf.replace( ' ' , '%20' )). read ()) - Preferences-> settings user
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading. See
// http://docs.sublimetext.info/en/latest/customization/settings.html
// for more info
{
// Tab and whitespace handling.
// Indent using spaces, 4 spaces ber indent by default, clean up extra whitespaces on save
"tab_size": 4,
"font_size":13,
"translate_tabs_to_spaces": true,
"trim_automatic_white_space": true,
"trim_trailing_white_space_on_save": true,
// Do not try to detect the tab size from the opened file
"detect_indentation" : false,
// Don't do any VIM keybindings or other VIM fanatic sugar
//"ignored_packages": ["Vintage"],
// Don't complain about plug-in responsive
// (Too verbose when you have slow computer)
"detect_slow_plugins": false,
// http://www.granneman.com/webdev/editors/sublime-text/top-features-of-sublime-text/auto-completion-in-sublime-text/
// The delay, in ms, before the auto complete window is shown after typing
"auto_complete_delay": 500,
// Install better them
// (You can get this from the package control)
// https://github.com/buymeasoda/soda-theme/
"theme": "Soda Dark.sublime-theme",
// Download better font
// https://github.com/adobe/Source-Code-Pro
"font_face" : "Source Code Pro",
// Don't show hidden (dotted) directories and binary files in the sidebar
// (You are not going to edit them in any case)
"file_exclude_patterns": [".*", "*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"]
}
- Plugin
- SublimeLinter
- SublimeCodeIntel
- Tag
- INI
- DocBlockr
- PythonTidy
- SideBarEnhancements
- Git
- Prefixr
- Bracket Highlighter
- Python
Edit %APPDATA%\Sublime Text 2\Python\Python.sublime-build Change content to: { "cmd": ["C:\\python27\\python.exe", "-u", "$file"], "file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)", "selector": "source.python" }
change the "c:\python27" part to any version of python you have in your system. - C++
SublimeClangというプラグインをインストールしたが、うまくC++コードを実行できない。
- Font&size:
Font : Inconsolata
Size : 10
- pdb debugのためSublimeREPLをインストールした。
- Key Bindingsを作りましょう。
- 基本的な方法はPreferences->Key Bindings - Usersで追加・変更する方法だ。
- 文法は:
{ "keys": ["ctrl+break"], "command": "exec", "args": {"kill": true} }
- Cancel Build : [ctrl+break]->[ctrl+escapse]の方が便利だ。そうしたら、
{ "keys": ["ctrl+escapse"], "command": "exec", "args": {"kill": true} }
- SublimeREPLが便利ですが、起動が面倒だ。
- Tools->SublimeREPL->Python->Python PDB- Current file
- commandがわからない場合、..\Sublime Text 2.0.1\Data\Packages\SublimeREPL\config\PythonでDefault.sublime-commandsを開いて見て!!!(他の言語も同じ)
"keys": ["ctrl+f7"], "command": "run_existing_window_command", "args": {"id": "repl_python_pdb", "file": "config/Python/Main.sublime-menu"} }
|