Skip to main content

Tedshd's Dev note

Category: Sublime-Text

Sublime - change layout view in 2 columns

# Sublime - change layout view in 2 columns Video ## Setting Preferences -> Key Bindings - User set key to use [ { "keys": ["super+ctrl+left"], "command": "set_layout", "args": { "cols": [0.0, 0.95, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } }, { "keys": ["super+ctrl+right"], "command": "set_layout", "args": { "cols": [0.0, 0.05, 1.0], "rows": [0.0, 1.0], "cells": [[0, 0, 1, 1], [1, 0, 2, 1]] } } ] # Update ## Add focus If add focus, it need 2 commands so need write a python plugin ...

‎Sublime Text - Plug-In

# Plug-In Install by Package Control Fisrt use sublime need install Package Control Ctrl + ~ show command line enter import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' restart sublime finish ## ZenCoding ## jsFormat 讓 js 整齊 ctrl + alt + f GitHub ## SublimeTmpl 載入預設的樣板 ## Emmet 快速輸入 ## Gist ## BracketHighlighter ## Themes Dayle Rees Color Schemes Farzher Fox ## sublime-jslint GitHub ...

‎Sublime Text - Hot Key

# Hot Key Document Mac OS X ## Windows Ctrl+Shift+p 開啟指令列 Tab 自動完成字詞 ctrl + d 選單字 alt + F3 選相同的字 ctrl + f 搜尋 ctrl + 0 focus 到 siderbar Ctrl + Shift + <- or -> Alt + <- or -> 單字 or 符號間移動 Ctrl + Alt + up or down 輸入多選 Ctrl + g 跳行 ## Mac OS X Command + shift + p 開啓指令列 Ctrl + Shift + up or down 輸入多選 Ctrl + g 跳行 Command + <- or -> 跳到行首 or 行尾 Ctrl + tab 上一個 focus 的分頁 Ctrl + shift + tab 下一個 focus 的分頁 Command + K + L tolowercase Command + K + U touppercase ...

Sublime Text - initial setting

# Initial Setting Sublime Text 手冊 Preferences->Settings-Default "default_encoding": "UTF-8" "default_line_ending": "unix" "tab_size": 4 "translate_tabs_to_spaces": true "save_on_focus_lost": true "highlight_line": true "trim_trailing_white_space_on_save": true "rulers": [80, 120] "highlight_modified_tabs": true choose "ensure_newline_at_eof_on_save": true "use_simple_full_screen": true if want change font size Preferences->Settings-User { "default_encoding": "UTF-8", "default_line_ending": "unix", "tab_size": 4, "translate_tabs_to_spaces": true, "save_on_focus_lost": true, "highlight_line": true, "trim_trailing_white_space_on_save": true, "rulers": [80, 120], "highlight_modified_tabs": true, "font_size": 18.0, "ignored_packages": [ "Vintage" ] } ...