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.
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:
indent xml
Commented
Oct 21, 2017 at 4:11
The most error free way, is to
Package Control
FirstXML
file that you need to reformatYour Document will then update.
For information how to install the package control please see:
https://packagecontrol.io/installation
And
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.
Try this (for Windows only):
Open Sublime Text 3
Ctrl+Shift+P
Type: Package Control: Install Package
Then lastly type: indent XML
after installing the package open an XML file then press Ctrl+K next press Ctrl+F or you can go to Selection->Format->Auto Indent.
The location is system dependent, but are located at:
~/Library/Application Support/Sublime Text 3/Packages/
%APPDATA%/Sublime Text 3/Packages/
~/.config/sublime-text-3/Packages/
I was able to format XML without installing anything via Package Control.
.xml
It works by manually copying the contents of the zip file under ~/Library/Application Support/Sublime Text 3/Packages/
Need to make sure the package Indentor.sublime-package
is installed.
Install the Package Control First
Ctl + shift + P then type Install Package and press Enter
Ctl + shift + P then type Install Package and press Enter
To Use: Open the XML file that you need to reformat Ctl + shift + P then type Indent XML Press Enter