简体   繁体   中英

How to prevent refactoring when I double-click & paste over a variable?

I regularly copy something, double-click something else (generally a variable), and paste over it with ctrl-v. After installing productivity power tools, occasionally (I haven't been able to pinpoint the exact circumstances) it will open up the header file of the variable I pasted over, and refactor it to what I pasted. How do I prevent this?

When clicking on the variable with Ctrl held, the power tools will navigate to the declaration of the variable. (Which is a feature that I appreciate)

You have two choices:

  • do not press Ctrl before you have marked the variable with double clicking
  • disable the "Ctrl+Click go to definition" feature under Tools > Options > Productivity Power Tools

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM