Z
Z
zhenya2772021-04-24 13:52:30
Visual Studio Code
zhenya277, 2021-04-24 13:52:30

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

1 answer(s)
D
Dmitry Belyaev, 2021-04-24
@zhenya277

responce.data.sprites.other['official-artwork'].front_default

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question