10

I would expect pressing Ctrl+C without having selected anything to copy the whole line where the cursor is. Unfortunately this is not the case.

Is there a way to change this behaviour?

Of course I am aware of how to select a whole line pressing Home+Shift+End or triple-clicking the line and then copying it to clipboard.

But what I want is just pressing Ctrl+C without having selected anything in the line. Why is this default behaviour not implemented in my favorite editor?

Michael S.
  • 3,987
  • 8
  • 42
  • 64
  • 3
    why do you think it's not available? Did you try the shortcut mapper and search for "copy"? Nowadays it's `Shift+Ctrl+X` by default – phuclv Sep 09 '18 at 10:20
  • CTRL-D will duplicate the current row, in case you are meaning that with copy. – LPChip Sep 09 '18 at 11:32

2 Answers2

9

Is there a keyboard shortcut to select the entire current line in Notepad++?

there is the answer of your question, seems ctrl+shift+X does the copy line has wish to.

AtomiX84
  • 742
  • 3
  • 11
0

"Why is this default behaviour not implemented in my favorite editor?"

I would expect pressing Ctrl+C without having selected anything to copy the whole line where the cursor is. Unfortunately this is not the case.

Why do you expect this? As far as I know this is not the default behaviour for any windows application.

Ctrl+C in a Windows application requires a selection of something to be copied.

It is not default behaviour for Notepad++ and the developers chose not to implement this functionality.

You can either make a feature request or download the source code and add this feature yourself.

DavidPostill
  • 153,128
  • 77
  • 353
  • 394
  • 4
    This is _very_ common behavior in Windows programmer's editors, including Visual Studio, Visual Studio Code, UltraEdit and IntelliJ IDEA (and all the other JetBrains IDEs). And if you're asking "why do you expect this?" I would ask the opposite question: why would you expect Ctrl+C to do nothing at all when it could do the very useful thing that many programmer's editors already support? – Michael Geary Feb 10 '19 at 01:49