Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^4: No Hard Tabs in Code

by Xiong (Hermit)
on Jul 05, 2010 at 19:48 UTC ( [id://848114]=note: print w/replies, xml ) Need Help??


in reply to Re^3: No Hard Tabs in Code
in thread No Hard Tabs in Code

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 -

Replies are listed 'Best First'.
Re^5: No Hard Tabs in Code
by ikegami (Patriarch) on Jul 05, 2010 at 20:10 UTC

    Wait, you're saying you're using tabs mid line? ow! Your code will look like garbage if the viewer uses different tab stops. I don't mind doing some extra work to avoid that.

    It's also a big time waster and distraction to have to pause after each press of Del or cursor to see how far the cursor has moved. I can delete 10 spaces faster than I can delete 10 columns that may contain tabs.

    Personally, I often come from the left and use Ctrl-Del (delete to character or EOL) since it's usually more natural to come from the left in the situations in which such an operation is done.

      I'm saying that was my former practice. I've reformed; I hope I've made that clear.

      - 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://848114]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2026-05-12 19:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.