how to install sublime text indent xml in sublime 3
I am trying to install https://github.com/alek-sys/sublimetext_indentxml in sublime text 3. I read
In Sublime Text 3 - clone project from Github into Packages folder.
Doesn't seem to work.
I am not sure where the Packages folder is.
None of the above answers worked for me as they appeared to be missing a crucial 'step' to the process (step 2 below). This is how I got it to install for me in Windows using Sublime Text 3:
- Install Package Control (Tools > Install Package Control...)
- Open Package Control (Ctrl+Shift+P) and type 'Package Control: Install Package' and then press Enter.
- Sublime will attempt to load any custom repositories then offer a list of packages available.
- At this point, I was able to successfully search for 'indent xml' and have it appear in the list and install by pressing Enter with it selected.
The most error free way, is to
- Install the
Package Control
First - Ctl + shift + P then type Install Package and press Enter
- Type Indent XML and press Enter
To Use:
- Open the
XML
file that you need to reformat - Ctl + shift + P then type Indent XML
- Press Enter
Your Document will then update.
For information how to install the package control please see:
https://packagecontrol.io/installation
And
https://packagecontrol.io/docs/usage
If you are using Mac, go to the menu as follows:
Sublime Text -->
Preferences -->
Package Control -->
Install Package
When the list box opens, type indent xml
( or a different package indentx
).
Once the package is installed, Command+Shift+P
Then choose indent xml
to automatically format your file.
The location is system dependent, but are located at:
- OS X:
~/Library/Application Support/Sublime Text 3/Packages/
- Windows:
%APPDATA%/Sublime Text 3/Packages/
- Linux:
~/.config/sublime-text-3/Packages/