Unity Scripts edited in Visual studio don't provide autocomplete

前端 未结 26 1789
半阙折子戏
半阙折子戏 2020-11-22 10:02

When I want to edit C# Unity scripts, they open in Visual Studio. It is supposed to provide auto complete for all Unity related code, but it doesn\'t work.

Here you c

26条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-22 10:15

    • Go to Options on the Tools menu and then select Documents in the Environment node. (If Documents does not appear in the list, select Show all settings in the Options dialog box.)
    • Put a tick on "Miscellaneous files in Solution Explorer" and Click OK. (This option displays the "Miscellaneous Files" node in Solution Explorer. Miscellaneous files are files that are not associated with a project or solution but can appear in Solution Explorer for your convenience if you tick this option.)
    • Locate your file in the Solution Explorer under "Miscellaneous Files". Then drag and drop your file to where it should belong and voila! This will copy the file to where you drop it. You may now safely delete the older file under Miscellaneous Files folder if you wish to do so

    Credits: https://stackoverflow.com/a/47662523/10471480


    In case Scripts folder is not visible:

    • Click on "Show all files" in Solution Explorer
    • Locate the Scripts folder.
    • Right Click on Scripts and select "Include in Project"

提交回复
热议问题