You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

VS 2019中ReSharper「Select next occurrence」功能使用及快捷键失效咨询

Fixing ReSharper’s "Select Next Occurrence" (Alt+J) Not Working in VS 2019

I’ve dealt with this exact shortcut issue in VS 2019 before— let’s break down the most common fixes to get Alt+J working again:

  • Verify ReSharper is active and running
    First, check if ReSharper is properly loaded: look for the ReSharper icon in the VS top-right corner, or go to Extensions > Manage Extensions and confirm ReSharper is enabled. If it’s grayed out or missing, try restarting VS, or disable/re-enable the plugin to force it to load.

  • Check for shortcut conflicts
    VS or other plugins might be hijacking the Alt+J shortcut. To fix this:

    1. Go to Tools > Options > Environment > Keyboard
    2. Search for the command ReSharper_SelectNextOccurrence
    3. If the shortcut isn’t set to Alt+J, click "Press shortcut keys", hit Alt+J, then click "Assign"
    4. Also, check if VS’s native Edit.SelectNextOccurrence command is using Alt+J— if so, reassign that to a different shortcut to avoid conflicts.
  • Make sure you’re using the correct workflow
    This is a super common mistake: you don’t need to select the variable name first! Just place your cursor directly on the variable (no need to highlight the entire word), then press Alt+J. The first press will select the current word, and subsequent presses will select each next occurrence. If you have the word fully selected, the shortcut might not trigger as expected.

  • Reset ReSharper’s keyboard settings
    If you’ve customized ReSharper’s shortcuts before, they might be corrupted. Reset them by:

    1. Going to ReSharper > Options > Environment > Keyboard & Menus
    2. Select Use ReSharper shortcuts (or click "Reset" to restore default bindings)
    3. Restart VS to apply the changes.
  • Confirm version compatibility
    Ensure your ReSharper version supports VS 2019— ReSharper 2019.1 and later are compatible with VS 2019. If you’re running an older version, upgrade ReSharper to the latest compatible release.

内容的提问来源于stack exchange,提问作者Vozn1akHero

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.14 07:32:45