|
tab converted to spaces
|
Joined: Jul 2003
Posts: 5
Member
|
OP
Member
Joined: Jul 2003
Posts: 5 |
Hello,
I have set the editor preferences to use tab character and smart fill. If I then highlight a row(s) with the mouse and hit the tab button spaces are substituted for the tab. This is annoying since we ident everything using tabs.
Am I setting one of the preferences incorrectly?
Regards, Greg Hems
|
|
|
Re: tab converted to spaces
|
Joined: Aug 1999
Posts: 22,239
Member
|
Member
Joined: Aug 1999
Posts: 22,239 |
I don't see the tabs disappearing when using the indent function, but I do notice that the actual indents do not use the tab character. We'll fix this.
------------------ Marco Kalter Allround Automations
Marco Kalter Allround Automations
|
|
|
Re: tab converted to spaces
|
Joined: Jul 2004
Posts: 592
Member
|
Member
Joined: Jul 2004
Posts: 592 |
I would like to lobby for this bug to be fixed soon, since it's the only bug I consistently run into. Please make sure it's still on the list
|
|
|
Re: tab converted to spaces
|
Joined: Aug 1999
Posts: 22,239
Member
|
Member
Joined: Aug 1999
Posts: 22,239 |
It's still on the list
Marco Kalter Allround Automations
|
|
|
Re: tab converted to spaces
|
Joined: Sep 2003
Posts: 387 London, UK
Member
|
Member
Joined: Sep 2003
Posts: 387 London, UK |
As a tab user I hit this type of issue a lot too: * I always want to indent blocks of PL/SQL using tabs, never spaces. * I always want to indent SQL using spaces, never tabs. For SQL within an indented PL/SQL block I want it indented with tabs up to the PL/SQL block level, and then the remaining SQL spacing made up from spaces - for example see http://www.williamrobertson.pwp.blu...lcodingstandards.html#indent-recommended It would be totally cool if PL/SQL Dev could be the first editor to support this.
|
|
|
Re: tab converted to spaces
|
Joined: Jul 2003
Posts: 1,140 Virginia, USA
Member
|
Member
Joined: Jul 2003
Posts: 1,140 Virginia, USA |
I am curious, why the mix of tabs and spaces?
Scott Mattes
|
|
|
Re: tab converted to spaces
|
Joined: Sep 2003
Posts: 387 London, UK
Member
|
Member
Joined: Sep 2003
Posts: 387 London, UK |
If you use tabs within SQL, then the alignment depends on a specific tab size, so it is broken as soon as you look at the code within a different editor, CVSWeb etc.
|
|
|
Re: tab converted to spaces
|
Joined: Jan 2004
Posts: 49
Member
|
Member
Joined: Jan 2004
Posts: 49 |
That's exactly why I NEVER use tabs. Not even in PL/SQL
|
|
|
Re: tab converted to spaces
|
Joined: Jul 2003
Posts: 1,140 Virginia, USA
Member
|
Member
Joined: Jul 2003
Posts: 1,140 Virginia, USA |
I was wondering more why the tabs in PL/SQL. Is there some benefit that I am missing?
Scott Mattes
|
|
|
Re: tab converted to spaces
|
Joined: Sep 2003
Posts: 387 London, UK
Member
|
Member
Joined: Sep 2003
Posts: 387 London, UK |
I agree it can be a PITA and there is certainly something to be said for not using tabs at all. I just like to have a separate block indent character. In other languages such as Shellscript, Java or even HTML and CSS you do not have the problem of nested DECODEs, subqueries etc taking odd amounts of blank space - it is just SQL you have to be careful with. If the editor could enforce some rules rather than just blindly replacing every multiple of n spaces with a tab character, tabs would be a lot more usable.
For example the regular expression
[^\t]\t
should never find any matches, because tabs should only follow a newline or another tab.
|
|
|
|
|
|