I'm getting this error message, while I'm programming my Arduino project and pressing CTRL+SHIFT+R
for refactoring:
No refactoring available
I'm getting this as well in my .cpp files as in my .ino or .h files. I got the extensions Arduino, C/C++, C++ Intellisense installed and my file programming language is set to C++.
I'm using vscode on Ubuntu 18.10. I installed vscode with these instrucitons from the repository and it is updated to the newest version (1.31.0). What am I doing wrong?
Here are some other inforamtions from "about" in vscode:
Version: 1.31.0
Commit: 7c66f58312b48ed8ca4e387ebd9ffe9605332caa
Date: 2019-02-06T08:51:24.856Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.18.0-13-generic
I already posted this question here, but I weren't aware of this recommendation before: https://github.com/Microsoft/vscode/issues/new/choose
Okay, seems like it isn't even implemented yet, so it is not possible.
Sources:
Visual studio code refactoring does not seem to work (e.g. rename symbol - f2)
https://github.com/Microsoft/vscode-cpptools/issues/296 (Closed)
https://github.com/Microsoft/vscode-cpptools/issues/2115 (Closed)
https://github.com/microsoft/vscode-cpptools/issues/1162 (Open: Extract method/variable )
Renaming is implemented since C++ tools extention 0.26.