I think customizing the cursor can make your coding experience more enjoyable and efficient.
Thatās why in this post Iām going to show you how to customize the cursor in VS Code.
Weāll be changing the cursor in both the editor and the terminal.
Letās get started!
Change cursor color
To change the color of the cursor in VS Code:
- Press
CTRL
+SHIFT
+P
(orCommand
+SHIFT
+P
on macOS) - Type settings.json
- SelectĀ Preferences: Open Current Profile Settings (JSON)
- Set the following properties under the
workbench.colorCustomizations
object:
ā ļø Warning
workbench.colorCustomizations
object. If you don't have it in your settings.json
file, you can create it.
š„ Would you prefer a video version of this post? Check this out:
Change cursor style & animation
Letās see how to customize the cursor style & animation in the Settings panel.
- Press
CTRL
+,
(comma) (orCommand
+,
on macOS) to open the Settings - TypeĀ cursor style
Here we have a bunch of settings we can play around with.
The Editor: Cursor Blinking is used to control the editor cursor animation style and holds the following values:
- blink (by default)
- smooth
- phase
- expand
- solid
To see an example of how each option would look, check out this video.
TheĀ Editor: Cursor Style is used to control the editor cursor style and holds the following values:
- line (by default)
- block
- underline
- line-thin
- block outline
- underline-thin
TheĀ Terminal > Integrated: Cursor Style is used to control the style of the terminal cursor and holds the following values:
- block (default)
- line
- underline
To change the animation of the terminal cursor, search forĀ terminal cursor style in the same Settings panel.
TheĀ Terminal > Integrated: Cursor Style holds the following values:
- block (by default)
- line
- underline
Thatās all for this article! Happy coding! š
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.