vs-debug-single-thread icon indicating copy to clipboard operation
vs-debug-single-thread copied to clipboard

How do I move the toolbar buttons to the Debug toolbar?

Open daiplusplus opened this issue 4 years ago • 3 comments

I find these buttons very useful, but I'd rather have them on my Debug toolbar instead of the Standard Toolbar, however I don't see the two commands FocusOnCurrentThreadCmd and SwitchToNextThreadCmd anywhere in the Toolbar editor command-picker.

image

image

daiplusplus avatar Jul 07 '21 00:07 daiplusplus

It should be possible to change the location of the buttons in the DebugSingleThread.vsct file. In particular the following which says the buttons are in their own group on the main toolbar:

<Groups>
  <Group guid="guidDebugSingleThreadCmdSet" id="guidDebugSingleThreadMenuGroup" priority="0x0901">
    <Parent guid="guidSHLMainMenu" id="IDM_VS_TOOL_STANDARD" />
  </Group>
</Groups>

It'd make sense to put the button in the Debug toolbar indeed. Can you check and submit a PR (might just take changing a single line of code)? Otherwise I'll try to look into it next time I work on the extension.

mayerwin avatar Jul 07 '21 15:07 mayerwin

I'll take a look at it, sure.

I'd like to know why the commands don't appear in the Add Command picker though...

daiplusplus avatar Jul 07 '21 16:07 daiplusplus

This might be due to the way the commands are exposed by the extension (it is a lightweight add-in). Not sure.

mayerwin avatar Jul 07 '21 16:07 mayerwin