Studio Creator Code Formatting Rule

How do I tell Studio Creator to use tabs instead of spaces?

I open Tools - Options - Editing - Java Editor and set

Code Formatting Rule = Java Indentation Engine ...

- Expand Tabs to Spaces = false

- Number of Spaces per Indent = 4

...

- Statement Continuation Indent = 4

After reformatting the source every 8 spaces were replaced by 1 tab. The blocks look like (s = space, t = tab)

ssss{

t{

tssss{

I want to have every 4 spaces replaced by 1 tab and displayed 4 characters per tab.

[633 byte] By [Ingmara] at [2007-11-26 23:44:26]
# 1

Not very clear on the question. But you need to Select Expand Tabs to Spaces. This inserts spaces when the Tab key is typed. The number of spaces inserted is set in the Number of Spaces per Indent property.

Select Expand Tabs to Spaces

- Number of Spaces per Indent = 4

Statement Continuation Indent is sets the number of spaces indented for second and subsequent lines in a multi-line statement.

Rradhikaa at 2007-7-11 15:15:52 > top of Java-index,Development Tools,Java Tools...
# 2

Thank you.

I don't want expand tabs to spaces. The reverse is true. I want to use the tab character instead a number of spaces quite the contrary. When I press the tab key there have to appear a tab character in the source. This has the following advantages:

- each developper can choose his prefered number of "space characters" per tab to display tab characters without changing the code or the formatting rules

- exchange with other IDEs which support this feature is easier

- the size of source files decreases

- navigating inside a line using the left/right cursor keys is faster

I hope you understand me now. English isn't my native laguage.

Message was edited by:

Ingmar

Ingmara at 2007-7-11 15:15:52 > top of Java-index,Development Tools,Java Tools...
# 3
Isn't there anyone who prefers tabs to spaces?
Ingmara at 2007-7-11 15:15:52 > top of Java-index,Development Tools,Java Tools...