Duplicate visual line studio

Asked

Viewed 29,160 times

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?

8 answers

14

Two options:

  • Shift+alt+Downarrow
  • Shift+alt+Uparrow
  • 1

    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?

  • The question IS NOT about Visual Code or LINUX. It’s about Visual Studio and Windows

9


Ctrl + D.

Note that Resharper undoes this setting. If this happens:

  • Resharper
  • Options
  • Keyboard & Menus
  • Select the classic shortcuts option from Visual Studio.
  • 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

  • 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:

  • Ctrl+C
  • Ctrl+V

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

Friend the function to copy a line up or down is:

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

You are not signed in. Login or sign up in order to post.