Does this issue occur when all extensions are disabled?: Yes
- VS Code Version: 1.62.0
- OS Version: Windows 10
Steps to Reproduce:
- Go to https://code.visualstudio.com/docs/other/unity
- Open External Tools Preferences in Unity Editor on Windows
- Look at list of toggle boxes Generate .csproj files for:
The instructions on this page do not state what settings should be selected for these toggle boxes and if these toggle boxes are not correctly set it can result in Unity namespaces not being correctly imported.
Further Steps
- Tick all Boxes
- Create script using UnityEngine.UI;
- using directive will indicate UI cannot be found in UnityEngine namespace
- Remove ticks from all boxes except 'Embedded packages' and 'Local packages', regenerate project files and re-open script created in step 2
- Error on using directive will no longer appear
Please update documentation.