Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9210583
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:06:45+00:00 2026-06-18T01:06:45+00:00

In Visual Studio 2010 what is the hotkey binding name for duplicating a line

  • 0

In Visual Studio 2010 what is the hotkey binding name for duplicating a line in the keyboard editor? I want to change it from

 CTRL + C / CTRL + V 

to

CTRL + SHIFT + DOWN

Then I can be happy and content 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T01:06:46+00:00Added an answer on June 18, 2026 at 1:06 am

    This can be done by creating Macro. To create the macro, follow these steps.

    1. Go to the macro explorer (Tools->Macros->Macro Explorer)
    2. Right Click My Macros and click New Module.
    3. In the module created copy and paste the code.

      Sub DuplicateLine()
        Dim line As String
        DTE.ActiveDocument.Selection.StartOfLine(0)
        DTE.ActiveDocument.Selection.EndOfLine(True)
        line = DTE.ActiveDocument.Selection.Text
        DTE.ActiveDocument.Selection.EndOfLine()
        DTE.ActiveDocument.Selection.NewLine()
        DTE.ActiveDocument.Selection.StartOfLine(0)
        DTE.ActiveDocument.Selection.Text = line
      End Sub
      

    Now just assign a keyboard shortcut to it:

    1. Go to Tools->Options
    2. Under Environment, click Keyboard
    3. In the “Show Commands Containing” textbox, enter “duplicate” (this according to the name you gave the module.)
    4. Choose “Text Editor” from the “Use new shortcut in” list
    5. Set focus in the “Press shortcut keys” textbox and hit the combination on the keyboard you wish to use for it (Ctrl+Shift+D in my case)
    6. Hit the “Assign” button
    7. Hit the OK button

    *Source: * http://www.herrodius.com/blog/52

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Visual Studio (2010, Ultimate) finds nothing when I do Find in Files (Ctrl+Shift+F) in
Visual Studio 2010 moved to using WPF for rendering the editor. This is leading
In Visual Studio 2010 you can assign keyboard shortcuts for moving lines up and
In Visual Studio 2010, I could list my tests by full name. That way,
In Visual Studio 2010, I want to debug two web applications running on IIS
Visual Studio 2010 C# Is it possible to run and close a program from
In Visual Studio 2010, i want it to embed a manifest with default settings:
Visual Studio 2010, I was able to view xaml in designer. Now every xaml
Visual Studio 2010 C# code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using
Visual Studio 2010 offers a lot of comfortable tools for unit testing via its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.