VS屏幕快速跳转插件 Easy Motion for Visual Studio

Easy motion is a plugin for Sublime that allows for quick and simple keyboard navigation within a file 1. Just 3 key strokes can take you to any visible letter. No neeed for complex regexes or patterns, all you need to know is the letter that you want to navigate to.

A user alerted me to this sublime plugin a month or so ago and I immediately started using it. I absolutely loath touching the mouse or arrow keys during development because I feel it slows me down. Typically I use vim style editors to avoid the mouse. But the steep learning curve of vim shouldn’t be a prerequisite for efficient keyboard navigation. Easy motion represents a great middle ground here for developers who want to get more productivite with a minimal learning curve.

So a few weekends ago I sat down and coded up an Easy Motion clone for Visual Studio. Been toying with it for a few weeks now and it’s ready to be shared out more generally.

Here is a simple example of how to use EasyMotion to jump around within a file. Let’s start with a"Hello World" program that has the cursor positioned at the end of a using directive.

example 1

Now I want to move the caret to the start of Console.WriteLine. Instead of moving my hands to the arrow keys, or even worse grabbing the mouse, I initiate an easy motion search by pressing Shift+Control+;.

example 2

In response the editor added a status line asking me for the character I want to search for. I type C as it is the first letter in Console.WriteLine.

example 3

There are many occurences of C in the file and Easy Motion distinguishes between them by overlaying every occurence with a new letter (a-z). To jump to a specific instance of ‘C’ I simply type in the letter which overlays the ‘C’ I want to jump to. In this case it is ‘I’

example 4

Now the caret is positioned exactly where I wanted at the start of Console.WriteLine. No arrow keys, no mouse, just 3 quick keyboard touches and I’m there

  1. The Sublime plugin is itself a clone of a vim extension 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值