vscode-cpp-helper icon indicating copy to clipboard operation
vscode-cpp-helper copied to clipboard

Change definition / declaration

Open Shatur opened this issue 5 years ago • 4 comments

Thank you for the awesome plugin! Very convenient tool.

I would like to suggest one awesome feature from QtCreator. When you changing function definition manually it suggest to correct declaration and vice versa. Is it possible to implement something similar? Very often needed to do.

Shatur avatar Aug 06 '20 21:08 Shatur

Hi

I created the Create implementation feature using Regex and there is no parser and I think it's hard to implement this feature without having a parser.

amir9480 avatar Aug 07 '20 05:08 amir9480

Got it! What if use LSP for such things?

Shatur avatar Aug 07 '20 07:08 Shatur

@Shatur95 I have no idea how to use this.

Also, the Official C++ extension for vscode has plans to add the create implementation feature to their extension. So my extension gonna be useless soon :).

https://github.com/microsoft/vscode-cpptools/issues/664#issuecomment-665795976

amir9480 avatar Aug 07 '20 16:08 amir9480

Without context data from LSP this feature will be impossible to implement :(

:D But other features, such as include guards generation still useful.

Shatur avatar Aug 07 '20 16:08 Shatur