- Home /
Can't open json from editor
I used to be able to double click on a json file and it would open within the VS solution/project. But I changed it so it would open in Sublime text. Now I want to able able to open it in my project again but it wont. I am getting this error
I can see it in my solution however,
If I change the properties in the explorer (open with... VS) it will open in a totally new window, rather than within my project/solution .
How can I make json files open within the project again? Thanks in advance.
Just to try make a bump cause I really would like to know how this all works. This is the desired and undesired results i am getting
(Undesired) (Desired)
The meta files between them are different however I changed them to be the same with no result and i deleted them so they could regenerate to also so success.
How does this all work?
I have the same problem however it was opening json file in new vs window from the beggining (and not attaching it to unity project it was opened in). After making new json file Unity simply does not detect it as one even though i didn't clicked anything, just tried to open it.
ah yea, its pretty annoying, I didn't end up resolving the issue either. But I'm using VSCode now and I don't have that problem so its all good now :)
Well, i found out that all i had to do was to manually open json file trough visual studio directly from file location. Somehow it added this file and now its attached to my unity project.
Yet it still does not show up in Unity as json file and i have to open it trough VS.
Answer by GXMark · Nov 06, 2021 at 05:52 PM
I'm not sure if this is the same issue your facing but all i did was simply go into the windows explorer. Right click properties and change the application opening json type to visual studio. Then when i tried opening the file from the unity project explorer it opened in visual studio.
Also what i did notice in the Unity 2020.3.22f1 (LTS) edition (not tried on other versions) was that if the json file did not open in the visual studio editor but opened using notepad for example that i would lose the Unity Project explorer tool in visual studio. Which meant that i had to regenerate project files under Unity preferences>external tools.
I think this is the right answer. Just change the windows default program for opening files
Probably right. This is so old I've never had this problem since haha