Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 912
Stéphane Gerber Avatar asked Sep 02 '13 06:09

Stéphane Gerber


People also ask

How do I indent XML in Sublime Text?

Open any XML file, or create a new file and paste any XML into it. Ctrl-K, F to indent it.

Can I use Sublime Text for XML?

SublimeText Indent pluginIt is smart enough to recognize XML or JSON even if you are editing plain text.

Does XML have indentation?

No, the indentation does not matter in XML documents.


1 Answers

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.
like image 84
jenovachild Avatar answered Sep 20 '22 10:09

jenovachild