

If necessary, you can press Ctrl+Shift+Alt and then use arrow keys to move the duplicate to the desired position. Learn or search all Mac & Windows keyboard shortcuts for VS Code in one place, with the ultimate keyboard. In this video well go over the VS Code Keyboard Shortcut: Duplicate Line (Copy Line Down) - spoiler alert - its Shift + Option + Down ( + + ). If you have duplicated a selection, the selection stays at the duplicate. The duplicated line or multi-line selection is inserted below the original line or selection the duplicated inline selection is inserted to the right of the original. Alternatively, you can press Control+Shift+A, start typing the command name in the popup, and then choose it there.


Press Control+D or choose ReSharper | Edit | Duplicate Text from the main menu. Fixed a bug in the warn / error code for the per-base sequence content plot Fixed a typo in the.
Visual code duplicate line update#
To select a logical code block, press Control+W one or more times to select the current declaration, press Control+Shift+OemOpenBrackets. Fixed a performance bug in highly duplicated sequences. Duplicate line in Visual Studio Code 214,236 Solution 1 Click File > Preferences > Keyboard Shortcuts: Search for copyLinesDownAction or copyLinesUpAction in your keyboard shortcuts Usually it is SHIFT + ALT + Update for Ubuntu: It seems that Ubuntu is hiding that shortcut from being seen by VSCode (i.e. To clone an arbitrary piece of code, select it in the editor. If you want to clone a line, set the caret at this line line. ReSharper helps you streamline the cloning part - with a single keystroke Control+D the cloned code is inserted right after the original. I'm afraid there's no way to duplicate this behavior. I've already selected, as a layout, VS Code from the Keyboard settings. If I do this in VS Community, the caret just duplicates. One of the ways of creating a code element similar to an existing one (for example, a new method overload or a new auto-implemented property) is cloning the existing element with copy-paste and then editing the clone. Hello, by selecting multiple lines in VS Code and pressing Shift + Alt + UpArrow or DownArrow, the lines would duplicate beneath or above.
