Subscribe through Feedburner

Practical tips to help you use Macs, iPhones and iPods

Subscribe by Email · Subscribe to the MacTips feed · Follow MacTips on Twitter. · Follow us on YouTube. · Join MacTips on Facebook.

5 PowerTips for Deleting Text

Wed 10 June 2009

Delete forwards and backwards, letters, words and lines — all from the keyboard.

5 PowerTips for Deleting Text
Mac Tip #388, 10 June 2009

Delete words or lines of text with a single keystroke, while not even touching the mouse.

Those of us who do a lot of writing also do a lot of deleting. The Delete (Backspace) key normally deletes one character at a time, working from right to left, but you can make it work more effectively for you.

Different keyboards for different folks

First, though, a word about keyboards. I use a MacBook Pro. It has only one Delete key, up in the top right corner, near F12, +, and |.

Those who use desktop Macs tend to use an ‘extended’ keyboard that also includes a Forward Delete key, generally over near the number keypad. The Forward Delete key normally deletes one character at a time, from left to right.

In this Tip I’m writing only about the Delete (Backspace) key and not the Forward Delete key. If you can contribute experiences with the Forward Delete key please add them to the comments on this Tip.

Also, I’m using Mac OS X 10.5.7. While these Tips should still work for other versions of the OS and the software that comes with it, there may be differences.

One character at a time: back or forward

You may think the Delete key can delete only one character at a time, working from right to left, but it can do a lot more, if you add one or more modifier keys.

Suppose after I type the word MacTips the cursor is located just to the right of the letter s. If I press the Delete key once the letter s will be removed, leaving MacTip. That’s the default action for the Delete key — to remove the character to the left of the insertion point.

The effects of various deletion techniques.

The effects of various deletion techniques.

Now let’s imagine that the cursor is moved to be immediately to the left of the word MacTip. If I hold down the fn key and press the Delete key once the letter M is removed — in other words, the letter to the right of the insertion point. This gives us a Forward Delete, just by holding down the fn key and pressing Delete.

One word at a time: back or forward

Try putting the cursor to the right of a word and holding down Option (⌥) while you press Delete once. This removes the word to the left of the insertion point.

If the insertion point is already inside a word then Option Delete removes the part of the word to the left of the insertion point.

Now reverse it and try Option fn Delete. Adding in the fn key reverses direction and deletes a whole word to the right of the insertion point. Or, if the cursor’s inside a word then it deletes the part of the word to the right of the insertion point.

The screenshot shows the effects of these various deletes. Click the thumbnail for a larger version.

One line at a time: back, but not forward

Hold down Command (⌘) while you press Delete and all the text between the insertion point and the beginning of the line is deleted.

Unfortunately, I can’t find a key combination that will delete forward to remove a whole line.

A summary of deletions

Add these modifier keys to make Delete work harder.

Delete + Key Action
Delete Removes one character to the left of the insertion point
Delete fn Removes one character to the right of the insertion point
Delete Option Removes one word to the left of the insertion point
Delete Option fn Removes one word to the right of the insertion point
Delete Command Removes one line to the left of the insertion point

Try it out, and let us know in the Comments what you find. Are there places where it doesn’t work?

Related Posts

  1. Deleting messages Deleting messages Eudora Tip #17/13-Jan-2000 When your emails arrive they...
  2. Edit a selection Use the arrow keys to make editing selected text easier....
  3. Dead Keys How to type European and other accents such as the...
  4. Tab Stop Two Step Don't use Spaces to line up columns in text; press...
  5. Word styles key command Set a keystroke for assigning styles to selected text in...

Hey. Welcome back. Sign up for free MacTips updates via RSS or email, follow MacTips on Twitter and check our YouTube channel. Check for more Tips on this topic. We love your Comments too.

{ 2 trackbacks }

TAMARI ONLINE » Blog Archive » Mac keyboard: 5 PowerTips for Deleting Text
Sun 21 June 2009 at 15:43:11
Vídeo-aula: atalhos para deletar textos no Mac OS X | MacMagazine
Wed 08 July 2009 at 11:13:56

{ 9 comments… read them below or add one }

1 Jo Fothergill Wed 10 June 2009 at 07:03:26

The Fn-Option-Delete and the Cmd-Delete don’t work in the version of word I’m running – but both work fine in Pages.

In this comment box the Cmd-Delete doesn’t work and it also doesn’t work in Google Docs.

However gaining the whole word delete is a huge bonus for me.

Many thanks.

Reply

2 Miraz Jordan Wed 10 June 2009 at 07:05:33

Thanks for that Jo.

I had thought of saying that with MS Word all bets are off… :-)

Cheers,

Miraz

Reply

3 Simon Cavalletto Fri 12 June 2009 at 09:15:15

In some (many? all?) Mac applications, control-k deletes from the cursor forward to the end of the line.

(Actually, instead of deleting, it actually “cuts” the end of the line, placing the text on an alternate clipboard, separate from the one used by normal command-c/v commands, which can be pasted back in using control-y.)

This keyboard short-cut is inherited from Unix-style terminals via NextStep, which included both Unix-style and Mac-style editing commands.

-Simon

Reply

4 Miraz Jordan Fri 12 June 2009 at 09:25:52

Thank you Simon. That’s excellent information.

I note though, in testing this, that it seems not to delete to the end of the *line*, as you say, but to the end of the *paragraph*. It may depend on how one defines ‘line’ exactly. :-)

It was interesting to see that Control, combined with various keys, also did things such as deleting forward, making a new paragraph, and so on.

Reply

5 Dan Shipman Thu 27 August 2009 at 02:43:26

Great tip, but the last one did not work for me: (Cmd-Del = delete entire line to the left of cursor. I am used to using Opt-Shft-arrow keys and the Opt-Cmd-arrow keys, though.)
MacBook Pro 17″ – 2.5-yr-old machine; OS 10.5.8; tried this in Pages 2008

Delete + Key Action
Delete Removes one character to the left of the insertion point
Delete fn Removes one character to the right of the insertion point
Delete Option Removes one word to the left of the insertion point
Delete Option fn Removes one word to the right of the insertion point
Delete Command Removes one line to the left of the insertion point
Try it out, and let us know in the Comments what you find. Are there places where it doesn’t work?

Reply

6 Miraz Jordan Thu 27 August 2009 at 09:28:13

Hmmm, thanks for the feedback Dan.

I just tested Command Delete in Pages ‘09 on my 3.5 year old MacBook Pro 15″. It deleted a whole row of text, as I expected.

Reply

7 norman Duquette Sun 20 September 2009 at 16:52:38

Where is the fn key?

Reply

8 Miraz Jordan Sun 20 September 2009 at 17:17:04

Norman: on a MacBook Pro or MacBook the fn key should be at bottom left of the keyboard, beside the Ctrl and Option keys.

If you don’t have a Mac laptop then you’re likely to have a full size keyboard which should have a Forward Delete key on it.

Reply

9 Miraz Jordan Tue 06 October 2009 at 13:59:08

Over at TUAW I just also discovered that Control D will delete one character forward too:

Mac 101: Forward delete on a Mac laptop

Reply

Leave a Comment