Drag and drop code Just click and drag selected text to move it around in VS Code. If you hold option/alt when dropping, the selected text is copied instead of moved. Disable drag and drop with the editor.dragAndDrop setting.