Working with Devcontainers - file path issues - How to change slash direction? "/" versus "\"

Hey,

I am having an issue where I am running cursor on windows but developing in a devcontainer of a ubuntu system and I’m having issue with file paths.

The chat window will try to open files with
\workspaces\path\to\file while the devcontainer is using /workspaces/path/to/file

This has quite a few consequences such as

  1. No automatic file context when I open the chat window
  2. “The editor could not be opened because the file was not found” when trying to open a file linked by the chat
  3. Issues applying diffs - have to manually open the file first for the chat window to find the file to apply to.

+1, now July 2025 and Cursor still unable to understand devcontainer workspaces rootPath. It might eventually find the files you @ reference but it will go all around the houses before it may work it out.

Still waiting for devcontainer to be first-class citizen here in Cursor.