Turning tabs to spaces...

I'm using an EAP build so I've lost my documentation. But there doesn't seem to be an obvious place to have my tabs turned into spaces before saving (or preferably have the tab key deposit x spaces rather than 1 tab)

any help would be appreciated

2 comments

joe martinez wrote:

I'm using an EAP build so I've lost my documentation. But there doesn't seem to be an obvious place to have my tabs turned into spaces before saving (or preferably have the tab key deposit x spaces rather than 1 tab)


Check in IDE Settings->Code Style->Indent and Braces for the tabs or
spaces setting. Once you've changed that setting to spaces, I believe
that using the Tools->Reformat Code command should convert tabs to
spaces in addition to reformatting your code.

Ciao,
Gordon

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

0

I wish there were a way to tabbify and un-tabbify without reformatting
code... and which worked with all file types (not just java files). That
would be incredibly useful. Right now, I resort to other editors to do this
(since virtualy every other editor I have supports this function). Is there
something I'm just missing in IDEA?


"Gordon Tyler" <gordon.tyler@quest.com> wrote in message
news:bn0vf5$bn4$1@is.intellij.net...

joe martinez wrote:

>

I'm using an EAP build so I've lost my documentation. But there doesn't

seem to be an obvious place to have my tabs turned into spaces before saving
(or preferably have the tab key deposit x spaces rather than 1 tab)
>

Check in IDE Settings->Code Style->Indent and Braces for the tabs or
spaces setting. Once you've changed that setting to spaces, I believe
that using the Tools->Reformat Code command should convert tabs to
spaces in addition to reformatting your code.

>

Ciao,
Gordon

>

--
Gordon Tyler (Software Developer)
Quest Software <http://java.quest.com/>
260 King Street East, Toronto, Ontario M5A 4L5, Canada
Voice: 416-643-4846 | Fax: 416-594-1919

>


0

Please sign in to leave a comment.