Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 17, 2020 02:59 am GMT

Change Cursor Colour in VS code

Ive been using VSCode for almost 2 years now and I like it so much. Im sure that you like it too. I will show you how to change cursor colour in VScode.

VSCode is an electron application. So you can change the CSS and JS way you want in VSCode for that you need one extension called "Custom CSS and JS Loader".

Alt Text

After installing the extension follow these steps to change the colour of the cursor.
1) Add this settings into settings.json.

"editor.cursorWidth": 3,"vscode_custom_css.imports":[""],"vscode_custom_css.policy": true,

2)Create one CSS file into your machine and add the following property to that CSS file.

Feel free to choose any gradient colour you want from uiGraients and paste into the '.monaco-editor .cursors-layer .cursor ' selector.

.monaco-editor .cursors-layer .cursor {  background: #12c2e9;   background: -webkit-linear-gradient(    to top,    #f64f59,    #c471ed,    #12c2e9  );   background: linear-gradient(    to top,    #f64f59,    #c471ed,    #12c2e9  ); }

3)Change the file location for 'vscode_custom_css.imports' in the settings.json

  "editor.cursorWidth": 3,  "vscode_custom_css.imports": ["file:///home/pushpak1300/Documents/vscode.css"],  "vscode_custom_css.policy": true,

4)Type 'CMD +SHIFT +P' to toggle command palette and type 'Reload Custom CSS and JS' to apply settings.
Alt Text

5)Hooray!

If all goes well, you should have the gradient cursor in vs code.

If u have any questions please let me know in comments.

image

Honourable Mentions

Don't forget to check out this course if you want more cool feature.

Thank You!


Original Link: https://dev.to/pushpak1300/change-cursor-colour-in-vs-code-2jed

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To