DEV Community

Ben Halpern
Ben Halpern Subscriber

Posted on

What advice would you give someone looking to use their keyboard more and their mouse less?

How does one break a mouse dependency in a practical way?

Oldest comments (33)

Collapse
 
inigogb profile image
BaronVonHex

I'd recommend you switch your code editor to VIM or Emacs, the learning curve is a little bit steep but in the long run If you want to be less dependent on your mouse when you code it's a good start.

Collapse
 
jackharner profile image
Jack Harner 🚀

The most drastic option I can think of is to just unplug your mouse and put it away. That might not be super realistic though since you'll probably come across a website or software that just wasn't designed for use without a mouse. I did this when I first got a drawing tablet. Helps you get used to visualizing the area of your screen as the little rectangle sitting on your desk.

The most likely step would be to either print off or download all the keyboard shortcuts for whatever software you're using. Even Reddit and Twitter have keyboard shortcuts for navigating through posts, upvoting/liking, etc.

Knowing keyboard shortcuts keeps your hands on the keyboard which means less time moving back and forth and more time just working.

Collapse
 
jmplourde profile image
Jean-Michel Plourde

Learn vim by setting your default terminal editor as vim and download a vim keymapping for your favorite IDE. You can even further the experience by downloading vimium for Firefox or Chrome. It will get you far in most systems.

If vim isn't your thing, learn the shortcuts of your favorite IDE and of your OS.

If like me you typed for the last 20 years with weird bad habits, now is a good time to learn touch typing. It makes typing easier and you'll learn your shortcuts faster.

It is a habit thing, first week feels clunky but surprisingly you muscle memory builds up rapidly.

Collapse
 
manzanit0 profile image
Javier Garcia
  • Vimium for the browser :)
Collapse
 
jmplourde profile image
Jean-Michel Plourde

The scroll is so smooth and satisfying I can't live without it.

Collapse
 
ryanwilldev profile image
Ryan Will

Definitely agree with turning on Vim emulation in your preferred editor. It can feel immobilizing at first, but it pays off quickly.

Collapse
 
jmplourde profile image
Jean-Michel Plourde • Edited

I mean it's the best of both worlds: You get all the awesome features of a modern IDE while using a powerful text input tool

Collapse
 
alexisbenamar profile image
Alexis Benamar

I'd say, 3 things:

  • Find ressources that shows shortcuts for your most used apps (IDE, web browser, OS). By reading through it, you might find some that you never thought could exist but are a huge time saver.
  • This might by hard at first, but try unplugging your mouse directly. You'll be more enclined to find workarounds that way. (I once had a half-broken mouse and was so annoyed with it that I became used to not use it at all)
  • Finally, embrace the almighty power of the TAB key
Collapse
 
piusik profile image
pius ik • Edited

I'm a C guy using notepad++. I still use my mouse when "necessary". Sometimes it makes sense to just use the mouse. but trust me, using the keyboard is fast and enjoyable. Try to use your command prompt to do simple tasks like starting your code editor. That should get you started.

Collapse
 
jwesorick profile image
Jake Wesorick • Edited

I'm not an expert here but have had similar plans. I know you can do everything with Vim shortcuts. VSCode, Chrome, and then maybe learning mac keyboard shortcuts. And then put your mouse on the left side of your keyboard.

Collapse
 
wjnbreu profile image
William J.N. Breuer

invest in a good mechanical keyboard. you'll enjoy the sound and feel of your typing so much that you'll naturally use your keyboard more.

bonus: mechanical keyboards can be customizable

Collapse
 
petarov profile image
Petar G. Petrov • Edited

Switch to using the mouse on the other side.

I recently started having issues with some of my fingers on my right hand. Probably CTS related or so. Anyway, because of that I started using the mouse with my left hand. It turned out that it's got rather cumbersome to use most keyboard combinations with my right hand, so this kind of forced me to switch to using just the keyboard more often than before.

Collapse
 
grodier profile image
George Rodier

My best advice is don’t learn everything at once. Identify the areas you use the mouse the most and learn those keyboard shortcuts first. Maybe it’s something as simple as saving OR maybe it’s text selection. Once you learn those shortcuts, find another one. Over time you can slowly build up a knowledge base that will help take you away from the mouse.

I still use the mouse more than I’d probably like, but I’ve started this approach and am seeing great success!

Collapse
 
brandonskerritt profile image
Autumn • Edited

Crtl + shift + p

Opens up this command prompt type thing in VS Code. You can search files, run the program, debug, open files, convert spaces to tabs.

If it's something you can do in VS Code, you can do it within this tiny but awsome window!

Like Alfred, but specifically for VS Code!

If you have a Mac:
it's shift + command p. Taken from here code.visualstudio.com/shortcuts/ke...