Skip to content

Instantly share code, notes, and snippets.

@samuelhorn
Created November 28, 2020 00:11
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samuelhorn/c4f252786f9bf0b1fb6189d54c96e1ae to your computer and use it in GitHub Desktop.
Save samuelhorn/c4f252786f9bf0b1fb6189d54c96e1ae to your computer and use it in GitHub Desktop.
Vscode pacman caret
.monaco-editor .cursors-layer .cursor {
background: transparent;
border-radius: 100%;
width: 30px !important;
background: conic-gradient(yellow 55deg, transparent 0 125deg, yellow 0);
transform: rotateZ(180deg);
animation: eat 0.5s linear infinite;
}
@keyframes eat {
0%,
50% {
background: conic-gradient(yellow 55deg, transparent 0 125deg, yellow 0);
}
25% {
background: conic-gradient(yellow 55deg, yellow 0);
}
}
@Elaniobro
Copy link

Elaniobro commented Nov 28, 2020

This is rad!

Where does this go in vscode, I would like to implement, and thanks for the gist/share :)

@samuelhorn
Copy link
Author

Haha cool!

  1. Save this gist as a CSS file anywhere
  2. Add this extention to VSCode: https://marketplace.visualstudio.com/items?itemName=be5invis.vscode-custom-css
  3. Add the following lines to your VSCode config:
"vscode_custom_css.imports": ["file:///source/to/your/file.css"],
"vscode_custom_css.policy": true,

Change the source to where you put your css file.

@fabianzelaya
Copy link

fabianzelaya commented Nov 28, 2020

Hi, question... When you say โ€œAdd the following lines to your VSCode configโ€, you mean go to settings.json and add these two lines of code, right? Thank you so much! ๐Ÿ™๐Ÿป๐Ÿ™Œ๐Ÿป

@samuelhorn
Copy link
Author

Exactly, then you save, press cmd+shift+p and run "Reload custom CSS and JS", then restart VSCode.

@fabianzelaya
Copy link

@samuelhorn Works perfectly! Thank you so much! ๐Ÿ™๐Ÿป๐Ÿ™Œ๐Ÿป

@samuelhorn
Copy link
Author

No problem. Can't imagine you want that there for long though! ๐Ÿ˜€

@fabianzelaya
Copy link

@samuelhorn Hahaha! I don't think so, ๐Ÿ˜…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment