Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ba3df9

Browse files
Add Debug and Run button (microsoft#8651)
1 parentf33afd0 commit0ba3df9

File tree

11 files changed

+281
-224
lines changed

11 files changed

+281
-224
lines changed

‎Extension/package.json‎

Lines changed: 32 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2575,6 +2575,14 @@
25752575
]
25762576
},
25772577
"scope":"resource"
2578+
},
2579+
"C_Cpp.debugShortcut": {
2580+
"type":"boolean",
2581+
"default":false,
2582+
"tags": [
2583+
"experimental"
2584+
],
2585+
"description":"%c_cpp.configuration.debugShortcut.description%"
25782586
}
25792587
}
25802588
},
@@ -2634,11 +2642,6 @@
26342642
"title":"%c_cpp.command.takeSurvey.title%",
26352643
"category":"C/C++"
26362644
},
2637-
{
2638-
"command":"C_Cpp.BuildAndDebugActiveFile",
2639-
"title":"%c_cpp.command.buildAndDebugActiveFile.title%",
2640-
"category":"C/C++"
2641-
},
26422645
{
26432646
"command":"C_Cpp.RestartIntelliSenseForFile",
26442647
"title":"%c_cpp.command.restartIntelliSenseForFile.title%",
@@ -2716,6 +2719,18 @@
27162719
"command":"C_Cpp.ClearCodeAnalysisSquiggles",
27172720
"title":"%c_cpp.command.ClearCodeAnalysisSquiggles.title%",
27182721
"category":"C/C++"
2722+
},
2723+
{
2724+
"command":"C_Cpp.BuildAndDebugFile",
2725+
"title":"%c_cpp.command.BuildAndDebugFile.title%",
2726+
"category":"C/C++",
2727+
"icon":"$(debug-alt)"
2728+
},
2729+
{
2730+
"command":"C_Cpp.BuildAndRunFile",
2731+
"title":"%c_cpp.command.BuildAndRunFile.title%",
2732+
"category":"C/C++",
2733+
"icon":"$(run)"
27192734
}
27202735
],
27212736
"keybindings": [
@@ -3832,6 +3847,18 @@
38323847
"group":"navigation"
38333848
}
38343849
],
3850+
"editor/title/run": [
3851+
{
3852+
"command":"C_Cpp.BuildAndDebugFile",
3853+
"when":"editorLangId == 'c' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile || editorLangId == 'cpp' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile || editorLangId == 'cuda-cpp' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile",
3854+
"group":"navigation@0"
3855+
},
3856+
{
3857+
"command":"C_Cpp.BuildAndRunFile",
3858+
"when":"editorLangId == 'c' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile || editorLangId == 'cpp' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile || editorLangId == 'cuda-cpp' && config.C_Cpp.debugShortcut && BuildAndDebug.isSourceFile",
3859+
"group":"navigation@1"
3860+
}
3861+
],
38353862
"editor/context": [
38363863
{
38373864
"when":"editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
@@ -3848,11 +3875,6 @@
38483875
"command":"workbench.action.showAllSymbols",
38493876
"group":"other1_navigation@4"
38503877
},
3851-
{
3852-
"when":"editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
3853-
"command":"C_Cpp.BuildAndDebugActiveFile",
3854-
"group":"other2@1"
3855-
},
38563878
{
38573879
"when":"editorLangId == 'c' || editorLangId == 'cpp' || editorLangId == 'cuda-cpp'",
38583880
"command":"C_Cpp.RunCodeAnalysisOnActiveFile",

‎Extension/package.nls.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"c_cpp.command.toggleDimInactiveRegions.title":"Toggle Inactive Region Colorization",
1212
"c_cpp.command.resetDatabase.title":"Reset IntelliSense Database",
1313
"c_cpp.command.takeSurvey.title":"Take Survey",
14-
"c_cpp.command.buildAndDebugActiveFile.title":"Build and Debug Active File",
1514
"c_cpp.command.restartIntelliSenseForFile.title":"Restart IntelliSense for Active File",
1615
"c_cpp.command.logDiagnostics.title":"Log Diagnostics",
1716
"c_cpp.command.referencesViewGroupByType.title":"Group by Reference Type",
@@ -26,6 +25,8 @@
2625
"c_cpp.command.RunCodeAnalysisOnOpenFiles.title":"Run Code Analysis on Open Files",
2726
"c_cpp.command.RunCodeAnalysisOnAllFiles.title":"Run Code Analysis on All Files",
2827
"c_cpp.command.ClearCodeAnalysisSquiggles.title":"Clear Code Analysis Squiggles",
28+
"c_cpp.command.BuildAndDebugFile.title":"Debug C/C++ File",
29+
"c_cpp.command.BuildAndRunFile.title":"Run C/C++ File",
2930
"c_cpp.configuration.maxConcurrentThreads.markdownDescription": {"message":"The maximum number of concurrent threads to use for language service processing. The value is a hint and may not always be used. The default of `null` (empty) uses the number of logical processors available.","comment": ["Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." ] },
3031
"c_cpp.configuration.maxCachedProcesses.markdownDescription": {"message":"The maximum number of cached processes to use for language service processing. The default of `null` (empty) uses twice the number of logical processors available.","comment": ["Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." ] },
3132
"c_cpp.configuration.maxMemory.markdownDescription": {"message":"The maximum memory (in MB) available for language service processing. Fewer processes will be cached and run concurrently after this memory usage is exceeded. The default of `null` (empty) uses the system's free memory.","comment": ["Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." ] },
@@ -209,6 +210,7 @@
209210
"c_cpp.configuration.debugger.useBacktickCommandSubstitution.markdownDescription": {"message":"If `true`, debugger shell command substitution will use obsolete backtick ``(`)``.","comment": ["Markdown text between `` should not be translated or localized (they represent literal text) and the capitalization, spacing, and punctuation (including the ``) should not be altered." ] },
210211
"c_cpp.contributes.views.cppReferencesView.title":"C/C++: Other references results.",
211212
"c_cpp.contributes.viewsWelcome.contents": {"message":"To learn more about launch.json, see [Configuring C/C++ debugging](https://code.visualstudio.com/docs/cpp/launch-json-reference).","comment": ["Markdown text between () should not be altered: https://en.wikipedia.org/wiki/Markdown" ] },
213+
"c_cpp.configuration.debugShortcut.description":"Show icon for 'Debug and Run' in shortcut menu bar",
212214
"c_cpp.debuggers.pipeTransport.description":"When present, this tells the debugger to connect to a remote computer using another executable as a pipe that will relay standard input/output between VS Code and the MI-enabled debugger backend executable (such as gdb).",
213215
"c_cpp.debuggers.pipeTransport.default.pipeProgram":"enter the fully qualified path for the pipe program name, for example '/usr/bin/ssh'.",
214216
"c_cpp.debuggers.pipeTransport.default.debuggerPath":"The full path to the debugger on the target machine, for example /usr/bin/gdb.",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp