Search code examples
visual-studio-codekeyboard-shortcuts

Is there a way to copy a line without the indentation in VS Code?


I just want to know if there is a short cut to copy the text line without the indent part.

Thanks!


Solution

  • Provided the cursor is at the end of the line:

    Shift+Home works.

    If your cursor is anywhere in the line, hit End, then Shift+Home.