Ctrl+R, Ctrl+R command not working

后端 未结 16 946
逝去的感伤
逝去的感伤 2021-02-01 00:08

I\'m attempting to use the Ctrl+R, Ctrl+R command within Visual Studio 2008 to rename a variable. I get an error message at the bott

相关标签:
16条回答
  • 2021-02-01 00:38

    For DevExpress:

    • Open the Options screen (Ctrl+Alt+Shift+O)
    • Go to CoreFeatures
    • Set Default to Visual Studio shortcuts
    0 讨论(0)
  • 2021-02-01 00:38

    For me, the issue was I hadn't started the Resharper evaluation which wasn't obvious because all of the Resharper extension options were accessible, but the clue was under:

    Extensions -> Resharper -> Why Resharper Is Disabled.

    Click "Start Evaluation" (in the same location as "Pause Evaluation" in the screenprint)

    I expected the evaluation to start when I clicked "OK", but clearly it doesn't.

    0 讨论(0)
  • 2021-02-01 00:40

    For me, this problem was caused by me not clicking 'Accept" on the terms and conditions page, but closing it. I did not realize it was the terms and conditions, and thought it was just a notice, or a 'readme' being displayed.

    0 讨论(0)
  • 2021-02-01 00:46

    I was able to fix this by doing the following:

    1. Go to ResharperOptions menu commmand
    2. Select EnvironmentKeyboard & Menus
    3. Select the Visual Studio option under Keyboard Shortcuts
    4. Click Apply Scheme and Save

    This will cause Ctrl+R, Ctrl+R to do a rename. (Select ReSharper options in the dialog box that pops up then.)

    However, it made F2 no longer able to preform a rename. I was able to fix that by doing the following:

    1. Go to ReSharperOptions menu command
    2. Select EnvironmentGeneral
    3. Select the ReSharper 2.x or IntelliJ IDEA under Restore ReSharper keyboard shortcuts
    4. Click Apply or OK

    This allows both F2 and Ctrl+R, Ctrl+R commands to work for renaming a variable.

    This seems to be specific to ReSharper being installed with Visual Studio, I don't know what the solution would be to fix this if ReSharper weren't installed.

    ReSharper Options Menu

    0 讨论(0)
  • 2021-02-01 00:46

    You get this behaviour in Visual Studio (without R# installed) if the editor window does not have focus when you issue the shortcut. I've just tried it with R# installed and it does the same thing.

    Give the editor focus (ie. by clicking in it) and try again.

    0 讨论(0)
  • 2021-02-01 00:48

    For Resharper 6

    You should:

    • Select menu "Resharper" - "Options..."
    • Select "Visual Studio Integration"
    • Choose "Visual Studio" in both places
    • Click "Apply Scheme"

    It will either works or you will have a selection to do (Visual Studio or Resharper), if it is so, then choose Resharper.

    0 讨论(0)
提交回复
热议问题