vscode-cpp-helper
vscode-cpp-helper copied to clipboard
Implementations of multiple methods
Hi! When I select multiple methods and do "Create implementation" implementation is created for the 1st one only, while on your preview you easily create implementations for all selected methods.
Maybe there's some special way of selecting methods I'm unaware of? I'm just selecting regularly with cursor and Shift.
I am also wondering how you select multiple functions.
- I had hoped that the functions in the currently selected text would be included, but no.
- I also tried selecting a class, in the hope that all member functions would be selected, but no.
- I also tried using the "multiple cursors" feature, Alt+Click (Option+Click on macOS), to select multiple functions, but when context-clicking, those cursors are lost.
I know that the "select multiple functions" feature exists, as it is shown in the video on marketplace: Marketplace: C++ Helper
@amir9480 can you clarify how multiple functions are selected for "Create Implementation"?
SOLVED!
I have found a way of selecting multiple functions for "Create Implementation", by experimenting with different modifier keys and clicks. It turns out that it is related to the "multiple cursor" feature of VS Code.
For each function to be selected: Alt + double-click
(Option + double-click
on MacOS) on the function name, which will leave the function name highlighted (with a blinking cursor).

Strangely, the Keyboard Shortcut Reference Windows or MacOS defines Alt + click
/Option + click
as "Insert cursor", but doesn't define an Alt + double-click
shortcut, which may be desribed as "Insert highlighted cursor" or "Insert selected cursor".
@amir9480 this should probably be mentioned in the plugin description, as the multi-selection shortcut is unintuitive and possibly undocumented in VS Code.