 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
S Guest
|
Posted: Sun Jun 29, 2003 11:51 am Post subject: Smart tab feature problem |
|
|
Hi,
I just switched from JB8 to JB9 and imported my old formatting
configuration. And everything is OK, except for one annoying thing:
in JB8, when I opened a curly braceand pressed enter, the closing brace
would be generated and line indented by one block. Now, in JB9 the line
doesn't get indented. E.g.:
in JB8:
if (a == b) {
| Quote: | = cursor is here
} |
in JB9:
if (a == b) {
| Quote: | = cursor is here
} |
I tried all combinations of smart tab, smart indent, etc. options, but I
always get the same result...
Any solutions?
Marin
|
|
| Back to top |
|
 |
Shawn Castrianni Guest
|
Posted: Wed Jul 09, 2003 2:39 pm Post subject: Re: Smart tab feature problem |
|
|
I have the same problem. It is very annoying.
"S" <smola (AT) devil (DOT) com> wrote
| Quote: | Hi,
I just switched from JB8 to JB9 and imported my old formatting
configuration. And everything is OK, except for one annoying thing:
in JB8, when I opened a curly braceand pressed enter, the closing brace
would be generated and line indented by one block. Now, in JB9 the line
doesn't get indented. E.g.:
in JB8:
if (a == b) {
| <= cursor is here
}
in JB9:
if (a == b) {
| <= cursor is here
}
I tried all combinations of smart tab, smart indent, etc. options, but I
always get the same result...
Any solutions?
Marin
|
|
|
| Back to top |
|
 |
John McGrath [TeamB] Guest
|
Posted: Thu Jul 10, 2003 2:30 am Post subject: Re: Smart tab feature problem |
|
|
On 7/9/2003 at 6:00:44 PM, Lori Olson (TeamB) wrote:
| Quote: | The Tab key is mapped to the "Format Code" function. The F2 key is
mapped to the "Indent" function. If you want Tab to indent code,
then you need to swap those 2 key mappings.
|
I think it is a good idea to switch the two keys, but I think he is
talking about a different problem. In JBuilder 8, if you typed the
following, followed by a return:
if ( true ) {
It would give you this ("|" indicates the cursor position):
if ( true ) {
With JBuilder 9, you get:
if ( true ) {
I suspect this might depend on the formatting options in effect. In
any case, it is very annoying.
--
Regards,
John McGrath [TeamB]
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|