7
Is there a hot key that replicates the action (Ctrl c + Ctrl v)? Besides having to copy press enter or click on the bottom line and paste, I can duplicate this line with some shortcut?
7
Is there a hot key that replicates the action (Ctrl c + Ctrl v)? Besides having to copy press enter or click on the bottom line and paste, I can duplicate this line with some shortcut?
14
Two options:
9
Ctrl + D.
Note that Resharper undoes this setting. If this happens:
Dude, here it didn’t work and there’s no resharp, and a very strict vs that I’m using =( Microsoft Visual Studio Express 2015 for Web
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.01055
Installed Version: WD Express
Visual Basic 2015 00325-40000-00000-AA674
Microsoft Visual Basic 2015
Visual C# 2015 00325-40000-00000-AA674
Microsoft Visual C# 2015
ASP.NET and Web Tools 14.0.20626.0
ASP.NET and Web Tools
6
There’s an extension to that:
https://marketplace.visualstudio.com/items?itemName=ctlajoie.DuplicateSelection
After installing, go to: Tools > Options > Environment > Keyboard. search for the command containing 'Duplicate' inform the shortcut you want (recommend Ctrl+D) and click Assign. Ready!
You didn’t install it in my version. 25/05/2017 20:30:09 - Vsixinstaller.Noapplicableskusexception: This Extension is not installable on any Currently installed products. 
 at VSIXInstaller.App.InitializeInstall(Boolean isRepairSupported)
 at VSIXInstaller.App.InitializeInstall()
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
Make sure there is no "Edit.Duplicateselection" option in your visual studio. Mine didn’t have it, so it was necessary to install it. From there just associate the command
@Meajudasilvio managed to solve ?
face does not have the option, I could not solve unfortunately =/
Try the solution by macro: https://stackoverflow.com/questions/2279000/visual-studio-short-cut-key-duplicate-line
2
Go to File (File) >> Preferences >> Keyboard Shortcuts
In the search field type copy line down
Click the pencil (edit) and a text field will appear
Press the combination of CTRL+D
Ready! ;)
2
The best options in my case (Linux Mint) was:
If you do not select anything, it will copy the full line.
That way it’s the same thing to use the Ctrl+D of other publishers (although in VS Code you have to use two keyboard shortcuts to have the same result of editors like Sublime or Notepad++, but this is not something banal, you can survive without, in my opinion).
0
No VS CODE is just like the friend said
Ctrl+alt+ down arrow
Only in Visual Studiio 2010 there is no such function, the best way is Ctrl+C and Ctrl+V(Do not need to select the whole line automatically it already copies the whole line.)
0
shift + alt + down
or
shift + alt + up
List all vscode shortcuts:
Windows/Linux: Ctrl + k Ctrl + s
The question IS NOT about Visual Code or LINUX. It’s about Visual Studio and Windows
-4
No vs code version 1.28.x to duplicate vc uses Ctrl+shift+alt down or up arrow.
The question IS NOT about Visual Code. It’s about Visual Studio.
Browser other questions tagged visual-studio-2015
You are not signed in. Login or sign up in order to post.
I was not the one who denied, but it seems to me that these shortcuts are from VS Code. VS Studio has been adopting the same?
– Bacco
The question IS NOT about Visual Code or LINUX. It’s about Visual Studio and Windows
– Augusto Vasques