Polished Programmer's Exclusive tool--shortcut keys

Source: Internet
Author: User
Tags wubi

Polished Programmer's exclusive tool is divided into three special presentations--

1. Command line & File

2. Shortcut keys (this article)

3. Text

------------------------------------------the partition line of AJ------------------------------------------

Preface

I and the source of shortcut keys should start from the game. 10 years ago The classic game Wow, the game has a lot of skills, so when playing the game will all the more commonly used techniques are set to the shortcut keys. The direction control is changed to SDF, and then the other letter keys of the left hand are the skill shortcut keys. Even scrolling up and down the mouse wheel has been set to my skill . After setting the shortcut, the game experience is completely different, so that when you are free, you also play Wow in casual games.

Later, the PC version of the Plant vs. Zombies is very hot, so follow the game for a while. But found that the left-hand corner of the plants to be selected can only use the mouse to point-too slow. So do an auxiliary tool, register the global hotkey F1,f2,f3 when starting, and then press F1,F2,F3 in the game, the program first uses GetCursorPos () to record the current position of the mouse, and then use the setcursorpos () Move the mouse over the left-hand corner of the plant icon to be selected, then call mouse_event () to simulate mouse clicks, and finally Setcursorpos () to move the mouse back to its original position. This use of "shortcut keys" than the manual operation of the mouse to point out how many times faster.

Finally play LOL, the default shortcut key Qwer, because these four keys do not have the FJ key on the small bump, it is easy to press the wrong. So the qwer were changed to XDFG, and then the Summoner skills DF changed to CV, fast intelligent cast ALT-XDFG, upgrade skills set to Alt-qwer.

Body

1. Visualstuido shortcut keys

Since I often write C + + code and use Vs2008+visualassist, here are all the shortcut keys used--

Can see I very much like to use Alt as a shortcut key prefix, because only need to use the left hand original by the blank thumb, a little turn Duflot can press the ALT key , left-handed other letter keys will not be affected. and If you use the CTRL key, the left hand whole must move the larger position, so it is difficult and other letter keys to double-click.

The specific shortcut key is roughly explained:

A. Vs default Comment, uncomment the shortcut default seems to be ctrl+shift+c,v, just want to say that when you press the three keys, the left hand moves too large, no more than the direct alt+c,v to faster

B. Alt+q can quickly switch between. h and. c/.cpp files

C. Alt+d can be quickly positioned at the definition of a function or variable name

D. alt+f can find the function name or variable name where the cursor is located

E. ALT + UP ARROW, down ARROW to toggle between the same function name or variable name.

F. alt+h,j,k,l controls the left, bottom, top, and right movements of the cursor, and is affected by the Vim editor.

2. Vim

The individual thinks that vim is to programmers like Wubi to typists . People who have studied Wubi know that they do not need to use their brains to think at all--just use "finger thinking" to type. Similarly, when you are familiar with VIM, many operations do not need to think about, you can use the speed of synchronization with the mind to edit the code. The first time to see the HJKL control cursor left, bottom, up, and right to move, feeling very awkward, but with more fingers familiar with this mode. I spent a few months stumbling on the Vim learning path, and finally became familiar with Vim.

In vs2008 I installed the VIEMU in order to use the features of VIM. In Vim's edit mode, in order to move the cursor, there is the above to set the alt+h,j,k,l to the cursor movement of the shortcut keys.

vim can be used as the last editor for us to learn . Because under Linux or Mac, there are vim plug-ins under Eclipse and Xcode, so the convenience of vim can be ensured after the platform is changed. Of course, it's best to use vim completely as an IDE (I haven't reached this level yet).

The specific use of Vim can be written another article, here is not too much elaboration.

You can not import and export the configuration to the shortcut keys under Xcode, so you have to reconfigure it for a different computer.

3. CapsLock change to Ctrl

The authors of the vim practical tips are recommended to change the case lock key to CTRL, which is a little easier than the original CTRL key when pressing CTRL+C,V,W. The personal replacement after the discovery is indeed a lot of convenience-just need to put the left hand little finger to a point, and then ring finger, middle finger, the real finger can be guaranteed in the original position unchanged. While the original press the CTRL key, the left hand always want to move a distance, sometimes no confidence, but also to look at the keyboard.

Save the following code as a reg file under Windows, and then execute and log off the computer to change the uppercase key to CTRL.

Windows Registry Editor Version 5.00[hkey_local_machine\system\currentcontrolset\control\keyboard Layout] "Scancode Map "=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00

Instead of changing the case lock key to the CTRL key, if the caps are locked for an unknown reason, I wrote a small program to simulate the CapsLock key keycaptital

5

4. Post a note on the keyboard

Look at the picture

After changing the CapsLock to CTRL, the CapsLock is almost the most used button except for a space. In order to make themselves more confident, from the FJ key on the small convex point to be inspired, so in the CapsLock posted a small object, so that the finger press on it will know that the key is actually pressed--but not very beautiful ~ ~ ~

Then in order to blind hit the number keys and the above symbol, write C program will use *&% (), and write Perl program [email protected]#$%^&* () These symbols will be used, and every time almost all have to see the keyboard, is also inspired by the FJ Bump, in the "47" Key on the separate post on the note, so blind hit the number keys, the left and right hand of the index finger on the 47 keys, and then you can use the letter keyboard fingering to play symbols.

5. A beautiful Vision

I've been working on my Mac for some time recently. The command location under the Mac is where my favorite Alt key is located. But to stay in the habit, change capslock to command under Mac and change command to CTRL. This is "CapsLock" +c,v under Windows and Mac when copying and pasting. The closing window is all "CapsLock" +w and so on.

Compared to Mac and Windows, on the shortcut keys can only say that the strengths--

A. Mac command+ up Arrow can go back to the top level directory, which is not available in Windows

B. Mac with Command+o is open or into the directory, and Windows is directly the ENTER key, and the ENTER key under the Mac is actually renamed. I want to ask: In the end is to open a file to use more or rename a file to use much ah?? It's too wasteful to use a key like this for a rename.

C. Mac under Command+m can minimize a single window, which is not available in Windows. But Comamnd+m is too difficult to use a hand to press!!! You cannot replace this shortcut. (Command+o also difficult to press with a hand)

So how I wish a system or Explorer can do all the work can be customized shortcut keys!!! Probably only compiled Linux yourself ...

Polished Programmer's Exclusive tool--shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.