Print Thread
Page 1 of 2 1 2
tab converted to spaces
#11509 07/28/03 09:25 PM
Joined: Jul 2003
Posts: 5
G
gdhems Offline OP
Member
OP Offline
Member
G
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
#11510 07/29/03 08:45 PM
Joined: Aug 1999
Posts: 22,239
Member
Offline
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
#11511 09/20/04 06:31 PM
Joined: Jul 2004
Posts: 592
W
Member
Offline
Member
W
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 laugh

Re: tab converted to spaces
#11512 09/21/04 12:10 AM
Joined: Aug 1999
Posts: 22,239
Member
Offline
Member
Joined: Aug 1999
Posts: 22,239
It's still on the list smile


Marco Kalter
Allround Automations
Re: tab converted to spaces
#11513 09/24/04 02:13 PM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
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
#11514 09/24/04 05:07 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
Offline
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
#11515 09/24/04 05:35 PM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
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
#11516 09/24/04 07:51 PM
Joined: Jan 2004
Posts: 49
Member
Offline
Member
Joined: Jan 2004
Posts: 49
That's exactly why I NEVER use tabs. Not even in PL/SQL wink

Re: tab converted to spaces
#11517 09/24/04 10:12 PM
Joined: Jul 2003
Posts: 1,140
Virginia, USA
Member
Offline
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
#11518 09/24/04 10:43 PM
Joined: Sep 2003
Posts: 387
London, UK
Member
Offline
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.

Page 1 of 2 1 2

Moderated by  support 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.1.33 Page Time: 0.050s Queries: 14 (0.011s) Memory: 2.5579 MB (Peak: 3.0394 MB) Data Comp: Off Server Time: 2024-07-01 05:30:50 UTC
Valid HTML 5 and Valid CSS