Skip to content

Instantly share code, notes, and snippets.

@Jon-dog
Created November 6, 2024 00:56
Show Gist options
  • Save Jon-dog/3982babdc49a461ff744b21158175f35 to your computer and use it in GitHub Desktop.
Save Jon-dog/3982babdc49a461ff744b21158175f35 to your computer and use it in GitHub Desktop.
VS Code snippets for colour pickers in Python
// Just some quick snippets for creating colour pickers quickly, mainly for VS Code
// Put this in your python code snippet file, accessed through ctrl + shift + p > Snippets: Configure Snippets
// Creates a colour picker with the #000000 hex format
"Colour Picker": {
"prefix": "col",
"body": [
"\"#000000\""
],
"description": "color picker!"
},
// Creates colour variable template
"Colour Variable": {
"prefix": "colvar",
"body": [
"col = \"#000000\""
],
"description": "color picker variable!"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment