Answer the question
In order to leave comments, you need to log in
How to make VScode not react to hyphens?
I'm trying to write the data that should come from the server into an array. And on the way to this data in the response JSON, there is "official-artwork".
The full path is responce.data.sprites.other.official-artwork.front_default
And Visual Studio Code Makes it
responce.data.sprites.other.official - artwork.front_default (with a space around the hyphen).
How can I fix the logic of its reaction to a hyphen when saving?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
responce.data.sprites.other['official-artwork'].front_default
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question