Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does TextMate have an easy way to indent 2 spaces for a HAML file?

Tags:

I look around for the preferences in TextMate and there seems to be no method to set the indent to 2 spaces when we highlight some code and choose

Text -> Shift Right

Right now it is indenting 4 spaces but is there a way to make it 2?

like image 224
nonopolarity Avatar asked Jun 02 '10 20:06

nonopolarity


People also ask

How many spaces indent XML?

Property Value The character string to use when indenting. This can be set to any string value. However, to ensure valid XML, you should specify only valid white space characters, such as space characters, tabs, carriage returns, or line feeds. The default is two spaces.


2 Answers

It's on the bottom bar off the application towards the middle. It'll say something like 'Soft Tabs: 4' if you click it you can change it to do 2 spaces for tabs.

like image 124
Justin Avatar answered Oct 12 '22 23:10

Justin


Also you can edit multiple lines by holding Option and dragging your mouse along the spot in the lines. When you type, the text will be on all the lines you selected at that spot.

like image 36
Jon W Avatar answered Oct 12 '22 23:10

Jon W