Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to exclude library includes when doing rename symbol?

When doing Rename Symbol (F2) in C++ Visual Studio Code, IDE/plugin traverses also the standard includes (STL etc.) and it takes too long on my machine. Please, how to restrict refactoring only to non-standard project files?

  • Visual Studio Code: 1.43.0
  • ms-vscode.cpptools C/C++ plugin: 0.27.0-insiders2
  • OS: Arch Linux 5.5.8 kernel
  • Compiler: gcc 9.2.1
like image 249
eeq Avatar asked Mar 11 '20 13:03

eeq


1 Answers

There is no direct method to do so.

Workaround: Use the side menu (textual replace)

Advanced search options

search and replace diff view

Drawback: Ctrl+F2 renames the 'symbol' in comments as well since it is a textual rename. (ref)

like image 159
brc-dd Avatar answered Oct 21 '22 10:10

brc-dd