Replacing Tabs with Spaces in Aptana (Soft Tabs)
While using Haml in Aptana, I had a problem with line indentation. Since Haml uses space indentation to represent the HTML structure (two spaces for each level), indenting multiple lines with the "tab" characters would result in Haml errors. I tried to search for the word "tab" in Aptana's "Preferences" window but didn't find what I wanted. Here is how to enforce Aptana to replace tabs with regular spaces (soft tabs).
- From Aptana "Window" menu, select "Preferences..."
- In the the preferences window, select "Aptana" > "Editors"
- In the "General" tab of the "Editors" window, select "Use spaces" under "Tab Insertion"
- Click the "edit" link besides the "Use spaces" option to open the general "Text Editors" window
- In the "Text Editors" window, set the "Displayed tab width" to "2"
- Press "OK"
- Enjoy two-spaces tabs
Did you like this article? Bookmark it:
Related Articles
- Running Aptana/Eclipse and InstantRails from a USB Drive
- Replacing Tabs with Spaces in Aptana (Soft Tabs)
- Haml/Saas Syntax Highlighting in Aptana/Eclipse
1 Comment
Leave a Comment
If you want to post code, do this:
<pre><code class="ruby|javascript|css|html"> your code here </code></pre>








Max
December 25th, 2008 - 09:56 PM
This doesn't work for me. I'm trying to edit a .haml file and tab still makes an actual tab.