Typing practice for coding
Five lessons that drill the keys programmers actually use: brackets, operators, underscores and real code lines. A physical keyboard is needed.
If you already type letters without looking but slow down every time you need a brace or an underscore, this is for you. The coding lessons below go from symbol pairs to naming styles to short lines of real code. They’re free, run in your browser, and don’t need an account.
The five code typing lessons
Take them in order the first time. Each one has three short drills, and you pass with one star.
1. Brackets and parentheses
You type opening and closing pairs the way they appear in function calls, lists and blocks. Most of the work falls on your right ring finger and pinky, with Shift for the curly braces. The goal is to close every pair you open without a glance at the keyboard.
2. Operators
Assignment, comparison and logic symbols: =, ==, !=, +=, ->, <=, >=, && and ||. Several of these are two-key combinations, so the lesson trains the rhythm of typing them as one unit. Aim for clean, even keystrokes rather than bursts.
3. snake_case names
Variable and function names joined with underscores. The underscore is Shift plus the minus key, a long reach for the right pinky while the left pinky holds Shift. After this lesson, names like max_score should flow without a pause at each join.
4. camelCase names
Names like userName and getItemById, where a capital letter marks each new word. The skill here is pressing Shift with the opposite hand in the middle of a word without breaking your flow. It is good practice for any language that uses this naming style.
5. Real code lines
Short lines of JavaScript and Python that bring letters, symbols, spaces and naming styles together. This is where everything from the first four lessons gets used at once, so expect to slow down at first and treat accuracy as the score that counts.
Warm up with the symbol lessons first
If symbols are new to your fingers, these shorter lessons isolate one group at a time:
- Brackets [ ] { } < >: square, curly and angle brackets on their own, before they show up inside code.
- - + = ( ): dashes, math signs and parentheses.
- @ # $ % & *: the shifted number-row keys, including the ampersand you need for &&.
- ? ! ' ": quotes for strings and the exclamation mark you need for !=.
- ~ ^ | \ _: the keys you reach for least, including the pipe and underscore.
Where the code keys are (and which finger)
This table uses a standard US keyboard and the same finger assignments as the finger placement guide. For Shift, use the pinky on the opposite hand from the key you’re pressing.
| Key | Where | Finger |
|---|---|---|
| ( ) | Shift + 9 and Shift + 0 | Right ring finger for (, right pinky for ) |
| [ ] | The two keys right of P | Right pinky |
| { } | Shift + [ and Shift + ] | Right pinky (left pinky holds Shift) |
| < > | Shift + comma and Shift + period | Right middle finger for <, right ring finger for > |
| = | Left of Backspace | Right pinky |
| _ | Shift + minus | Right pinky (left pinky holds Shift) |
| ; : | Right of L (Shift for :) | Right pinky |
| ' " | Right of ; (Shift for ") | Right pinky |
| / | Right of period | Right pinky |
| \ | | Above Enter (Shift for |) | Right pinky |
| & | Shift + 7 | Right index finger |
| ! | Shift + 1 | Left pinky (right pinky holds Shift) |
Want it on paper? Print the keyboard finger chart and keep it next to your keyboard until the reaches feel automatic.
A 10-minute practice routine for coders
One way to spend a short session. It’s a suggestion, so adjust it to suit you.
- 3 minutes: symbols. One of the symbol lessons above, slowly and accurately.
- 5 minutes: one code lesson. The next coding lesson you haven’t mastered yet.
- 2 minutes: a baseline. The 1-minute typing test, so you can see your general speed over time.
Speed vs accuracy in code
In an email, a typo is a small thing a reader skips over. In code, a missing bracket or a wrong underscore stops the program, and finding it takes longer than typing it carefully would have. That’s why these lessons reward clean typing: get accurate first, and let speed build on top of it.
For techniques that help once you’re accurate, read how to type faster. To understand the numbers on your results, see WPM vs CPM. If you still look down for letters, start with what touch typing is and the full lesson path.
Want a break? Try a speed game
Between lessons, a short game keeps your fingers moving. See the typing games for adults, or jump straight into Word Stack or 60-Second Frenzy.
Prefer practice without ads? RiteType Pro removes them.
Frequently asked questions
How can I practice typing code faster?
Practice the characters that slow you down, not just letters. Start with brackets and parentheses, then operators like ==, != and ->, then naming styles like snake_case and camelCase, and finish with full lines of code. RiteType has a free lesson for each step, and they run in your browser with a physical keyboard.
Is regular typing practice enough for programming?
It's a strong base, but code uses far more symbols, brackets and underscores than normal prose, and those keys sit at the edges of the keyboard where your pinkies reach. After learning the letter rows, add focused symbol and code drills so those reaches become automatic.
Which keys should programmers practice most?
Brackets ( ) [ ] { }, comparison and assignment operators (= == != <= >= && ||), the underscore and Shift for snake_case and camelCase, plus the semicolon, colon and quotes. Most of these are pinky reaches on a US keyboard, so slow, accurate repetition pays off before speed.
Should I touch type to be a programmer?
You don't have to, but in our view touch typing frees your eyes for the screen and your attention for the problem. If you look down for symbols, a few short drills on brackets and operators usually fix the biggest slowdowns. Start with RiteType's touch typing guide, then the code lessons.
How do I type curly braces and brackets without looking?
On a US keyboard, the [ and ] keys sit to the right of P and are typed with the right pinky. Hold Shift for { and }. Parentheses are Shift + 9 and Shift + 0, using the ring and pinky fingers. Drill them as pairs until you can type both without glancing down.