How do I copy a whole line in Notepad++ without selecting it before with a shortcut?

17,201

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.

Share:
17,201
Michael S.
Author by

Michael S.

Updated on September 18, 2022

Comments

  • Michael S.
    Michael S. over 1 year

    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?

  • phuclv
    phuclv over 5 years
    I've already voted to close this question with that one several minutes before
  • Michael Geary
    Michael Geary about 5 years
    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?