
If you want to create a duplicate line in Visual Studio Code, make use of the below keyboard shortcuts,
To create a duplicate line above the current line
Key the cursor on the line you want to duplicate,
Windows: Shift + Alt + Up Arrow Key ↑
Mac: Shift + ⌥ Option + Up Arrow Key ↑
Linux: Control + Shift + Alt + Up Arrow Key ↑
To create a duplicate line below the current line
Key the cursor on the line you want to duplicate,
Windows: Shift + Alt + Down Arrow Key ↓
Mac: Shift + ⌥ Option + Down Arrow Key ↓
Linux: Control + Shift + Alt + Down Arrow Key ↓
Provide Feedback For This Article
We take your feedback seriously and use it to improve our content. Thank you for helping us serve you better!
😊 Thanks for your time, your feedback has been registered!
Comments & Discussion
Facing issues? Have questions? Post them here! We're happy to help!