how to install sublime text indent xml in sublime 3

XmlFormattingSublimetextSublimetext3

Xml Problem Overview


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.

Xml Solutions


Solution 1 - Xml

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:

  1. Install Package Control (Tools > Install Package Control...)
  2. Open Package Control (Ctrl+Shift+P) and type 'Package Control: Install Package' and then press Enter.
  3. Sublime will attempt to load any custom repositories then offer a list of packages available.
  4. 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.

Solution 2 - Xml

The most error free way, is to

  1. Install the Package Control First
  2. Ctl + shift + P then type Install Package and press Enter
  3. Type Indent XML and press Enter

To Use:

  1. Open the XML file that you need to reformat
  2. Ctl + shift + P then type Indent XML
  3. 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

Solution 3 - Xml

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/

Solution 4 - Xml

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.

Solution 5 - Xml

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.

Solution 6 - Xml

  1. Use Package Control (Preference > Package Control) to install Indent XML.
  2. Then you can run the package by hitting Ctl + shift + P and then typing indent xml

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStéphane GerberView Question on Stackoverflow
Solution 1 - XmljenovachildView Answer on Stackoverflow
Solution 2 - XmlJunchen LiuView Answer on Stackoverflow
Solution 3 - XmlskurodaView Answer on Stackoverflow
Solution 4 - XmlKavanView Answer on Stackoverflow
Solution 5 - XmllarpView Answer on Stackoverflow
Solution 6 - XmlKester AllenView Answer on Stackoverflow