Closed aiyolo closed 2 months ago
If you type an empty definition ({}
instead of ;
at the end of the function), then a "Move function body out of line" code action is available.
For a code action that works on declarations, we have https://github.com/clangd/clangd/issues/445 on file.
Duplicate of https://github.com/clangd/clangd/issues/445
when I use other IDE, after I write function decraretion in .h file, I can use alt+enter to add an empty definition to .cpp files. It seems that clangd doesn't supprt this feature.
I just wonder that people using clangd how to deal with this situation?