I'm trying to install Emmet to Sublime as a plugin.
I open the console, and paste in
Package Control: Install Package
as instructed on the Emmet page.
However, when I hit enter I get
>>> Package Control: Install Package
File "<string>", line 1
Package Control: Install Package
^
SyntaxError: invalid syntax
Does anyone know why this happening and perhaps how to circumvent it?
First, you need to ensure that you have Package Control installed. Check here for instructions.
Once Package Control is installed and you've restarted Sublime, you need to open the Command Palette, not the console. You can use Tools -> Command Palette, or use the keyboard shortcut (CtrlShiftP on Windows and Linux, ⌘ShiftP on OS X). The Command Palette uses a fuzzy search algorithm, so you can either paste in the entire string Package Control: Install Package, or just type pci and it will come up. Hit Enter once it's highlighted, type in emmet, hit Enter again, and it will install. Please keep in mind that you need to have git installed on your system and in your PATH in order for Package Control to work properly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With