Cursor fails to inherit environment variables from VS Developer Prompt

:lady_beetle: Cursor seems to not inherit environment variables in the same way as VS Code. When developing in Microsoft C++, the recommended way to ensure that the environment variables are set is to launch VS Code from a Developer Command Prompt for Visual Studio. This works for VS Code but does not work for Cursor.

:counterclockwise_arrows_button:(See Configure VS Code for Microsoft C++ if the following steps are not sufficiently detailed)

  1. Run Cursor from a Developer Command Prompt for Visual Studio
  2. Create a .cpp file:
#ifndef WIN32
#error "WIN32 must be defined for this code to compile"
#endif

Note the intellisense error. It does not occur in VS Code.

:laptop: Windows, 0.47.8
:prohibited: This issue prevents me from using cursor

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.