Defining the Tab Size in JDeveloper 10.1.3


In JDeveloper 10.1.2, you could specify that space characters, rather than tab characters, should be used for tab settings when you pressed the Tab key.
You could also determine the "Tab Size" (number of space characters added when pressing the Tab key).
This was done through Tools -> Preferences... in the Code Editor as shown here:
TabSizeJDev1012:


In JDeveloper 10.1.3 however, the same dialog doesn't include this option:
CodeEditorJDev1013:


To specify it in JDeveloper 10.1.3, you should specify it through Tools -> Preferences... in the Code Style (the entry just below Code Editor):
CodeStyle1013:


If you click the Edit... button, you'll access the different settings for Indentation:
TabSizeJDev1013:


Comments:

Hello, if you tell JDeveloper (10.1.3.3) to use tabs for indenting by checking "Use Tab Character", only statements are indented by tabs. E.g. function definitions are still indented using spaces. And having a mix of spaces and tabs is of course even worse than using spaces. However, if you change the tab size from the default to i.e. 4, indenting works properly. Regards, Erik

Posted by Erik Dybdahl on January 14, 2008 at 12:20 AM CET #

I think I still had the same tab indentation problem with the latest JDeveloper (11.something). But when I changed the tab size from 8 to 4 it started to work. At least I guess that was the step that fixed it. Hope this will help others with this problem.

Posted by Attila on November 27, 2009 at 03:45 AM CET #

Post a Comment:
Comments are closed for this entry.
About

Didier Laurent - Sr Principal Support Engineer in the JDeveloper team

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today