๋ฐ์ํ
๋ฉ๋ด์์ Tools -> New Plugin
์๋ ๋ด์ฉ์ผ๋ก ๋ฎ์ด์ฐ๊ธฐ ํ ๋ค User ํด๋์ ์ ์ฅ
import sublime, sublime_plugin
import webbrowser
class OpenBrowserCommand(sublime_plugin.TextCommand):
def run(self,edit):
url = self.view.file_name()
webbrowser.open_new(url)
* ๋จ์ถํค ์ง์ - Preference -> Key Bindings โ User
์๋ ๋ด์ฉ ์
๋ ฅ ํ ์ ์ฅ (Ctrl + b๋ก ๋จ์ถํค ์ง์ )
{ "keys": ["ctrl+b"], "command": "open_browser" }
๋ฐ์ํ
'Tools > Sublime Text2' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Sublime Text2 ๋จ์ถํค (0) | 2013.05.03 |
---|---|
Sublime Text2 (0) | 2013.04.30 |
[ํ]Sublime Text 2์์ ์ฝ๋ ์ค๋ฅ๋ฅผ ์๋์ผ๋ก ์ก์์ฃผ๋ SublimeLinter (0) | 2013.04.30 |