![將網路位置與 Visual Studio Code 結合使用](https://rvso.com/image/1597823/%E5%B0%87%E7%B6%B2%E8%B7%AF%E4%BD%8D%E7%BD%AE%E8%88%87%20Visual%20Studio%20Code%20%E7%B5%90%E5%90%88%E4%BD%BF%E7%94%A8.png)
我正在嘗試引用 Windows Visual Studio Code 的 c++ 附加包含路徑的網路磁碟機上的位置。但VSC找不到該位置。
"configurations": [
{
"name": "Custom",
"includePath": [
"${workspaceFolder}/**",
"\\\\ndev\\somepathtostuff"
],
"defines": [],
"compilerPath": "",
"cStandard": "c11",
"cppStandard": "c++17",
"intelliSenseMode": "gcc-x64"
}
],
"version": 4
我試圖引用的路徑是 \\ndev\somepathtostuff'。這有什麼理由行不通嗎?
答案1
發布此內容後,我意識到雖然在檔案總管中使用正斜線表示網路位置不起作用。對於 VSC 來說確實如此。
因此,路徑“\\bin\stuff”變成“//bin/stuff”。