Blankman
Blankman

Reputation: 267040

TextMate: how to highlight the entire line to copy and paste?

I find the control+a and control+e hard to press, and for some reason control+shift+e doesn't seem to highlight the entire line.

I want to copy the line into my clipboard. How do I do this?

Upvotes: 4

Views: 2150

Answers (5)

Brett Bender
Brett Bender

Reputation: 19738

To highlight a line in TextMate, Shift+Command+L is what you want.

Upvotes: 7

Yohan W. Dunon
Yohan W. Dunon

Reputation: 530

If you want to duplicate a line you can use this shortcut:

  1. Cmd + left arrow to go at the beginning of the line
  2. Ctrl + Shift + D to duplicate the entire line below the one you want to duplicate

Duplicate Line / Selection (āŒƒā‡§D) ā€” this will duplicate the current line, leaving the caret in the same column on the new line, or if there is a selection, duplicate that.

Source: textMate official website


PERSONAL WARNING:

Selecting a word, or whatever, and apply this shortcut will duplicate next to the original one. Not below.

TIPS

If you want to move your new duplicated line or whatever:

  1. Ctrl + Cmd + arrow up will move up
  2. Ctrl + Cmd + arrow down will move down

Happy coding šŸ––

Upvotes: 1

doug
doug

Reputation: 70048

cmd-leftArrow               # to get cursor to beginning of line

shift-cmd-rightArrow        # to highlight entire line

cmd-c                       # copy the line to clipboard

Upvotes: 1

mipadi
mipadi

Reputation: 410732

Triple-click, then hit āŒ˜+C to copy.

Upvotes: 2

Doug Currie
Doug Currie

Reputation: 41180

Command-LeftArrow Shift-DownArrow is one way

Upvotes: 2

Related Questions