Easy to remember, easy to forget.
It's nice to be able to run subl
in a terminal.
ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime
Hit Ctrl+` to open the terminal and execute the python code below:
import urllib.request,os,hashlib; h = '2915d1851351e5ee549c20394736b442' + '8bc59f460fa1548d1514676163dafc88'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
- Cmd+P
- Install Package
TypeScript
- Restart
- Preferences > Settings > Syntax Specific (User)
{
"tab_size": 2,
"translate_tabs_to_spaces": true
}
This fails to accomplish 2 things:
does not address html files in angular projects (or even template strings): i.e. does not complete thing such as
*ngFor=""
,*ngIf=""
,[(ngModel)]=""
,(click)=""
etc.Does not address components and events created by the user (or another framework like Ionic): i.e. does not complete things such as
<my-component></my-component>
created by the user, or<button ion-button></button>
created by Ionic Framework 2/3 etc.@RajeshCh17: that is doable, but unfortunately it is hard to separate Angular plugins from Angularjs plugins (which there are more of). It is not helpful to developers looking to confirm online: "What is the de-facto standard Angular 2/4 plugin for sublime 3?"