Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: No Hard Tabs in Code

by Argel (Prior)
on Jul 01, 2010 at 16:58 UTC ( [id://847561]=note: print w/replies, xml ) Need Help??


in reply to No Hard Tabs in Code

Nedit lets you Shift Left and Shift Right (shift+ctrl+9 and shift+ctrl+0 respectively), though this affects the entire line, so it's only a solution for beginning of the line indenting. Anyway, I think part of the answer to spaces vs. tabs is to use an editor that makes it easier to shift left and right instead of having to delete all of the spaces.

Elda Taluta; Sarks Sark; Ark Arks

Replies are listed 'Best First'.
Re^2: No Hard Tabs in Code
by Xiong (Hermit) on Jul 01, 2010 at 23:22 UTC

    Changing the indent level is rarely an issue. I have Increase Indent, Decrease Indent set to Ctrl-[, Ctrl-], because that's how BBEdit does it.

    Getting tokens internal to a line to start exactly on tab stops is sometimes a bit trickier, without using hard tabs. On the other hand, it's often more important to match orthogonal syntax to the previous line, so spaces are better there anyway. I'm sold.

    - the lyf so short, the craft so long to lerne -

      Getting tokens internal to a line to start exactly on tab stops is sometimes a bit trickier, without using hard tabs.

      I don't know what you mean. Not only does auto-indenting handle that in almost all situations, the tab key of my editors bring me to a tab stop (even though it's configured to do so by adding spaces).

        Given:

        a line1 a line2

        ...and the desired result:

        a line1 a line2

        ...where only spaces intervene; I do not know of any way to align with a single keystroke. If hard tabs are used, a single backspace aligns.

        That was my argument. I hope I've made it clear that I no longer find it compelling.

        - the lyf so short, the craft so long to lerne -

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://847561]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-20 16:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found