nikhil
nikhil

Reputation: 9363

Copy LIne in qt shortcut

I have been searching a lot on this but of no use. Is there any shortcut to copy an entire line with a keyboard shortcut in QT creator? I have seen shortcut for cutting a line but that's not what i want..

Upvotes: 14

Views: 10655

Answers (4)

Sebastian
Sebastian

Reputation: 390

The shortcut name is "CopyLine".
You can find current shortcut in Edit -> Preferences -> Environment -> Keyboard Tab and filtering for "CopyLine".
If default shortcut has no effect, try to record a different one: default might be already reserved by other app.

Upvotes: 0

TinasheGuni
TinasheGuni

Reputation: 1

Ctrl + Alt + Up / Down Arrow on windows

Upvotes: 0

peter70
peter70

Reputation: 1113

Set cursor to the line you want copy and press Command+Alt+Down or Command+Alt+Up That's it!

You can also move a line: Mark the line you want to move and press Command+Shift+Down or Command+Shift+Up

Cheers!

ps: clearly they are shortcuts for mac!

pps: see also https://wiki.qt.io/Qt_Creator_Keyboard_Shortcuts

Upvotes: 9

alexisdm
alexisdm

Reputation: 29886

The shortcut list is user configurable in Tools menu -> Options -> Environment -> Keyboard.

And the default shortcut to copy a line is Ctrl + Ins.

Upvotes: 13

Related Questions