Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementations of multiple methods #57

Open
MaxGor90 opened this issue Oct 26, 2022 · 2 comments
Open

Implementations of multiple methods #57

MaxGor90 opened this issue Oct 26, 2022 · 2 comments

Comments

@MaxGor90
Copy link

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.

@hattesen
Copy link

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"?

@hattesen
Copy link

hattesen commented Nov 22, 2022

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).

Screenshot 2022-11-22 at 15 41 18

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants