For example, I start with a type like this:
type wallPaper = 'red'
After applying this type to 100 variables, I decide I want a different color:
type wallpaper = 'blue'
Is there an extension that can automatically replace the value for all 100 variables when it is changed?
I prefer not to use search and replace due to the potential risks involved.
Currently, I am using constants to maintain consistency. I work in vscode, by the way.
/////////
Update: Some may see this as an x,y problem, so here is more context on what I aim to achieve:
Let's say I have a setup like this:
type color = "red" | "blue"
const var1: color = "red"
const var2: color = "blue"
const var3: color = "red"
const var4: color = "blue"
const var5: color = "red"
const var6: color = "blue"
const var7: color = "red"
Imagine there are hundreds or even thousands of such variables.
Later on, I want to switch all instances of "blue" with "green", so I update my type to:
type color = "red" | "green"
Is there a method to easily switch all occurrences of "blue" to "green" across these related variables?