microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.48k stars 455 forks source link

If overwrite the shortcut key, please overwrite all. #4124

Open alex20230721 opened 1 month ago

alex20230721 commented 1 month ago

Brief Issue Summary

Image

now ,shift F5 is cmake debug,and ctrl F5 is cmake start without debugging. but system default is F5 debug, and system default ctrl F5 is run without debugging.

i suggest , shift F5 is cmake debug,and shift ctrl F5 is cmake start without debugging.

If covered, please cover all

CMake Tools Diagnostics

No response

Debug Log

No response

Additional Information

No response

alex20230721 commented 1 month ago

Override both defaults, or neither

alex20230721 commented 1 month ago

CMake can be operated by clicking the status bar or the CMake activity bar, so why does it override the VSCode shortcut keys?

I'm asking this question because when I click vscode run->run without debugging with my mouse, I find the behavior is different from when I use the shortcut key ⌃F5

Amy-Li03 commented 1 month ago

CMake:Debug (Shift +F5) CMake:Run Without Debugging (Ctrl + F5) Image

alex20230721 commented 1 month ago

i konw this ,i say ,it overwrite the vscode default shortcut key . Image Image

alex20230721 commented 1 month ago

vscode system debug:F5 vscode system Run Without Debugging:ctrl+F5 and CMake:Debug(Shift +F5) CMake:Run Without Debugging (Ctrl + F5)

As I mentioned before, this cmake shortcut overrides the default vscode shortcut. This causes different behaviors when I click the vscode menu bar with my mouse and execute with the shortcut in the menu bar. My suggestion

  1. Change to shift+ctrl+F5, because this function can be executed by clicking on the left side of the camke activity bar, or by clicking on the status bar icon below. If you need a shortcut, you can check the manual or document. Instead of overwriting the default shortcut.
  2. After installing this cmake extension, it prompts to overwrite the shortcut.

正如我前面提到的,这个cmake快捷键覆盖了默认的vscode快捷键。 导致我用鼠标点击vscode菜单栏执行和 用菜单栏提示的快捷键执行产生的行为不一样。 我建议呢 1.改成shift+ctrl+F5,因为这个功能完全可以从camke左侧活动栏去点击执行,或者用下面的状态栏图标点击执行,如果需要快捷键可以查手册或者文档。而不是去覆盖默认的快捷键。 2.安装这个cmake扩展后提示进行快捷键覆盖。

Amy-Li03 commented 1 month ago

Hi @alex20230721 , thanks for your details! I understand your issue, it's just that the cmake shortcut info is listed in the comment above.