简体   繁体   中英

Multiple words movement keyboard shortcut

I have not seen this answered anywhere, so here it goes.

I am working for the moment at work with Visual Studio and a generic shortcut that seems to facilitate movement word-by-word is Ctrl+left arrow (or Ctrl+right arrow ). Moreover, with Ctrl+Home or Ctrl+End , one moves to the beginning or the end of the line, accordingly. Is there some Vim-like shortcut that I can use or program into the editor so that I can move eg 3 words to the right? Keep pressing the arrow key gets tedious. I know of the VsVim plugin, but I would examine (if there are any) more options, maybe even applicable outside the context of Visual Studio. Thanks in advance.

You can use my Visual Commander extension to chain Visual Studio commands like this:

public void Run(EnvDTE80.DTE2 DTE, Microsoft.VisualStudio.Shell.Package package) 
{
    DTE.ExecuteCommand("Edit.WordNext");
    DTE.ExecuteCommand("Edit.WordNext");
    DTE.ExecuteCommand("Edit.WordNext");
}

And then you can assign a shortcut to this new command.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM