In Unity, I save my game using JSON files. When I open the file in Visual Studio, it shows the whole content with all its variables in one single line. Here is a small part of my JSON file:
// JSON before my copy / paste-trick (see below)
{"lastTicketDate":"04.13.2020","lastTicket":{"Id":2,"Type":0,"Fortune":"Fortune02","Author":"Me!!!\r","ShinyEffect":0,"BeenDrawn":true},"firstStart":false,"tickets":[{"Id":1,"Type":0,"Fortune":"Fortune01","Author":
// (...)
This is not very readable. How can I set up Visual Studio to show me the content properly, each variable in a separate line, like this:
// JSON after my copy / paste trick (see below)
{
"lastTicketDate": "04.13.2020",
"lastTicket": {
"Id": 2,
"Type": 0,
"Fortune": "Fortune02",
"Author": "Me!!!\r",
"ShinyEffect": 0,
"BeenDrawn": true
},
"firstStart": false,
"tickets": [
{
"Id": 1,
"Type": 0,
"Fortune": "Fortune01",
"Author": "Me!!!\r",
"ShinyEffect": 0,
"BeenDrawn": false
},
// (...)
Currently, I do it like this: Double-click on one word -> copy it (Ctrl+c) -> paste it back in (Ctrl+v) -> now the format changed to the desired version.
How do I fix this issue, what is the correct way to do it?
Ctrl+K, D
?... – Phlebitis