How to Hide Cursor While Typing
This guide explains how to stop the mouse cursor from getting in your way while you type, a common annoyance in word processors, code editors, and web forms. You’ll learn built-in OS settings, app-specific options, and a few scripts that can hide the pointer automatically after a few seconds of inactivity. No extra software is required for the basic methods.
What You’ll Need
- A Windows, macOS, or Linux computer
- Administrator or user account access to change system settings
- For the script method: a text editor (like Notepad or TextEdit) and, on Windows, the ability to save files with a .bat extension
Step-by-Step
On Windows 10 and Windows 11
- Open the Settings app by pressing Win + I.
- Go to Bluetooth & devices (Windows 11) or Devices (Windows 10).
- Select Mouse from the left sidebar.
- Click Additional mouse settings (a small link on the right side). This opens the classic Mouse Properties window.
- Switch to the Pointer Options tab.
- In the Visibility section, check the box labeled Hide pointer while typing.
- Click Apply, then OK.
- Test by moving the mouse over a text field, waiting a moment, and typing. The cursor should disappear after you start typing and reappear when you move the mouse.
On macOS
- Open System Settings (or System Preferences on older versions).
- Click Accessibility.
- Select Display from the left sidebar.
- Look for the Cursor section.
- Drag the slider labeled Hide pointer while typing to a value between Short and Long. The default is Long, which hides the cursor after about 5 seconds of typing. Setting it to Short hides it almost immediately.
- Close the settings window. The change takes effect instantly.
On Linux (GNOME, Ubuntu, Fedora)
- Open Settings.
- Go to Mouse & Touchpad (or Mouse on some distributions).
- Look for a toggle called Hide cursor when typing or Hide pointer when typing.
- Turn it on. If you don’t see this option, you can install a small utility like
unclutter(see Tips).
In Specific Applications
- Microsoft Word: Go to File > Options > Advanced. Under Editing options, uncheck Show insertion point when scrolling (this doesn’t hide the mouse, but it reduces distraction). For a true hide, use the Windows system setting above.
- VS Code: Open Settings (Ctrl+, or Cmd+,). Search for
cursorand find Editor: Cursor Blinking. Set it to solid to avoid blinking, but the mouse pointer itself is controlled by the OS. Use the OS-level setting. - Google Docs: The cursor is hidden by default while typing in the document area, but the mouse pointer remains visible. Use the OS setting to hide it globally.
Common Mistakes
- Not checking the right settings tab: On Windows, the “Hide pointer while typing” option is under Pointer Options, not under Pointers (which changes the cursor icon).
- Expecting the cursor to hide immediately: On macOS, the default delay is 5 seconds. If you type and then stop, the cursor may still be visible for a few seconds. Adjust the slider to Short for a quicker hide.
- Using a third-party tool when a built-in setting exists: Many users install AutoHotkey or similar tools without realizing the OS already has this feature. Always check the built-in settings first.
- Forgetting to save changes: On Windows, if you close the Mouse Properties without clicking Apply, the setting won’t take effect.
Tips
- Use a keyboard shortcut to move the mouse: On Windows, you can enable Mouse Keys (in Ease of Access) to move the cursor with the numeric keypad. This makes it easier to reposition the cursor without moving the physical mouse, which would bring it back.
- For Linux, install
unclutter: If your desktop environment doesn’t have a built-in option, installunclutter(e.g.,sudo apt install unclutteron Debian/Ubuntu). Run it withunclutter -idle 3to hide the cursor after 3 seconds of no mouse movement. - Use a script on Windows (AutoHotkey): If you want more control, you can use AutoHotkey with a simple script that hides the cursor after a few seconds of inactivity. Example:
#Persistent SetTimer, HideCursor, 3000 HideCursor: DllCall("ShowCursor", "Int", 0) ReturnThis hides the cursor after 3 seconds, but it will stay hidden until you move the mouse (you’ll need to add a mouse-move listener to show it again).
- Adjust the delay to your typing speed: If you’re a fast typist, a short delay (1-2 seconds) works well. If you pause often to think, a longer delay (5 seconds) prevents the cursor from flickering in and out.
Troubleshooting
- The cursor still appears while typing on Windows: Make sure you’ve applied the setting. Also, some applications (like games or full-screen video players) override the system setting. Try a different app to test. If it still fails, restart your computer.
- The setting is grayed out on macOS: This can happen if you have a third-party mouse driver installed. Check for any mouse software (e.g., Logitech Options, SteerMouse) and update or disable it, then try again.
- The cursor hides but doesn’t come back: This is rare, but if it happens, move the mouse vigorously or press a key like Ctrl to wake it. On Windows, you can also press Win + Ctrl + F to toggle mouse keys, which may force the cursor to show.
- On Linux, the setting doesn’t work in some apps: Some applications (like older Java apps) may not respect the system setting. Use
unclutteras a fallback, as it works at the X11 level and affects all apps.
Frequently Asked Questions
Does hiding the cursor while typing affect the text cursor (I-beam)?
No. The setting only hides the mouse pointer. The text cursor (the blinking line or I-beam) remains visible and unchanged.
Can I hide the cursor only in specific apps?
Not with the built-in OS settings—they apply globally. However, some apps have their own settings (e.g., in a game, you can often disable the mouse cursor). For more control, you can use a script that checks the active window title and only hides the cursor when a certain app is in focus.
Will this work in full-screen games?
Usually not, because games often capture the mouse and hide it themselves. The OS setting may be ignored in exclusive full-screen mode. In borderless windowed mode, it might work, but many games disable it.
How do I bring the cursor back after it’s hidden?
Simply move your mouse or touchpad. The cursor will reappear immediately. If it doesn’t, press a key like Ctrl or Shift.
Is there a way to make the cursor hide faster than the default?
Yes. On macOS, drag the slider to Short. On Windows, the built-in option hides immediately when you start typing—there’s no delay setting. On Linux, if using unclutter, you can set the idle time to 1 second or even 0.
Does this setting work in remote desktop sessions?
It depends. The setting applies to the local machine. When you’re in a remote desktop session (e.g., RDP, VNC), the cursor behavior is controlled by the remote machine’s settings. You’ll need to set the same option on the remote computer.
Related
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.