You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When use code runner with c/cpp codes, we need to add various compile/link flags for third-party libraries. Even though we could add all potentially needed libraries in code-runner.executorMap.cpp as an all-in-one solution, but it's too ugly and not portable across machines.
Describe the solution you'd like
Consider we have code like this:
We could extract compile command flags from special comments ^\/\/\s*vscode-runner:\s*(.*)$, instead of modify settings.json.
And then the default config of code-runner.executorMap.cpp would be "cpp": "cd $dir && gcc $commentFlags $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When use code runner with c/cpp codes, we need to add various compile/link flags for third-party libraries. Even though we could add all potentially needed libraries in
code-runner.executorMap.cpp
as an all-in-one solution, but it's too ugly and not portable across machines.Describe the solution you'd like
Consider we have code like this:
We could extract compile command flags from special comments
^\/\/\s*vscode-runner:\s*(.*)$
, instead of modify settings.json.And then the default config of
code-runner.executorMap.cpp
would be"cpp": "cd $dir && gcc $commentFlags $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
The text was updated successfully, but these errors were encountered: