VS 2019中ReSharper「Select next occurrence」功能使用及快捷键失效咨询
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 toExtensions > Manage Extensionsand 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 theAlt+Jshortcut. To fix this:- Go to
Tools > Options > Environment > Keyboard - Search for the command
ReSharper_SelectNextOccurrence - If the shortcut isn’t set to
Alt+J, click "Press shortcut keys", hitAlt+J, then click "Assign" - Also, check if VS’s native
Edit.SelectNextOccurrencecommand is usingAlt+J— if so, reassign that to a different shortcut to avoid conflicts.
- Go to
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 pressAlt+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:- Going to
ReSharper > Options > Environment > Keyboard & Menus - Select
Use ReSharper shortcuts(or click "Reset" to restore default bindings) - Restart VS to apply the changes.
- Going to
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

