ip: 3.147.61.195 DKs blog - sublime text

DK's Blog

sublime text

How to owerwrite sublime text default binding for  [ ] { }

Sublime is mess on some european keyborad 'cos it overwrites [ ] { } to fix this go preferences-> key bindings user

[
 { "keys": ["ctrl+alt+f"],  "command": "insert_snippet", "args": {"contents": "["} },
 { "keys": ["ctrl+alt+g"],  "command": "insert_snippet", "args": {"contents": "]"} },
 { "keys": ["ctrl+alt+b"],  "command": "insert_snippet", "args": {"contents": "{"} },
 { "keys": ["ctrl+alt+n"],  "command": "insert_snippet", "args": {"contents": "}"} }	
]

this will fix AltGr + f, AltGr + g, AltGr + b, AltGr + n ...


How to install Package control

go to view -> show conosle and copy & paste this

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())

now use ctrl + shift + p and type "install" ...


@2016