vscode-cpptools
vscode-cpptools copied to clipboard
Extract method/variable
Thanks for the great work on this; I am successfully using vscode-cpptools to work on a >2m line Qt project with no hitches so far :+1: :smile:
Refactoring is a huge task on such a project - support for extracting a method or variable would be great!
I.e select a section of code -> right click -> extract method (keybinding would be great aswell)
bump
Advanced refactoring is highly desired for my workflow. This would bring C++ up to speed with other VS code languages that support the refactoring features listed here: https://code.visualstudio.com/docs/editor/refactoring
Bump again.
bump - being able to refactor, extract methods and create definition from declaration is incredibly useful for efficiency.
bump
bump
Now that Visual Studio has Refactoring abilities for other languages, any chances to bring it to C++?
extract method, create declaration from implementation and change signature would be a giant plus. Great work on the C++ extension in general though, I am really liking it! Keep up the good spirit!
Moving a function from .h to .cpp (or in the opposite direction) is another example of useful C++ specific refactoring. Some nice C++ refactorings implemented in QtCreator are given here.
bump
@sean-mcmanus Any plan about this recently?
@Lennon925 It's not on our plans yet -- it's our 10th most upvoted feature and we're currently working on some of the 9th and below most upvoted features for our 1.0 release (after 0.27.0).
@Lennon925 It's not on our plans yet -- it's our 10th most upvoted feature and we're currently working on some of the 9th and below most upvoted features for our 1.0 release (after 0.27.0).
Thanks and Expect it very much~
bump
bump
Same here. Would live to highlight a section of code and have it extracted and turned it into a function.
I had to take drastic measures to help with this and actually bought a CLion license. It is slow as dirt but the refactoring support is phenomenal. Would love to have this supported in VSCode which is my preferred IDE by far.
I have some time on my hands before starting on my internship and would like to contribute if I can. How would I go about trying to implement this? I haven't really contributed to open source projects other than my own but this could be a good start?
My initial thought is to view the source for the languages where this feature is working (Java, Javascript, and others I think).
Can anyone point me in the right direction?
Thanks!
looking forward to such a feature - I use it a lot on PyCharm, and would love to see it on vscode as well
@rockboynton Our open source TypeScript code doesn't have access to the database and lexing code in the closed source cpptools process that would be necessary to implement this correctly. If you wanted to use another lexer/parser, then implementing a separate extension that provides the extract method variable feature would be another possibility. The interface with VS Code is the code actions APIs.
@sean-mcmanus Thank you for the information. I will look into it.
@sean-mcmanus So you're saying cpptools-srv
is closed source? Is it possible to run cpptools extension with clangd
as LSP server? Or should we look into https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd ?
@Vanuan Yes, cpptools-srv (and cpptools) is closed source and covered by a more restrictive EULA, not the MIT license. Yeah, you can try https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd . We have not investigated invoking clangd from our extension.
bump
bump
Another bump :)
one more bump:)
Add on bump to the list :-)
Come on, 3 years... it's getting ridiculous
Bump