-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a command to navigate to the matching #if/#ifdef/#else/#endif #4779
Comments
#407 has been implemented, but it seems "Go to Bracket" does not work, nor afaict anything else. |
@yushiyangk Yeah, looks like we'd have to add a new command. |
This should be pretty simple to support. The FoldingRangeProvider could keep a per-file mapping of folding ranges (instead of discarding them after they are returned to VS Code, which is what it currently does). We might want to limit that to just S_BM_IFDEF and possibly S_BM_REGION range types. A command could be added which checks the current cursor position, looks for a start/end on that line, and moves the cursor to the other line. It might be necessary to adjust the end line by +1/-1, as I think ranges will end on the line prior to the |
unfortunately, when in multifolder workspace, it will show a popup window which chosing the workspace when using command |
@heartacker I've moved that to #7283. It'll be fixed in our next 1.3.0-insiders4 release (some time next week). |
This feature was added in 1.3.0. |
Type: LanguageService
Describe the bug
To Reproduce
Expected behavior
if I press the specific key, then the cursor moves to matching pair.
#if
<->#endif
#if
<->#elif
<->#else
<->#endif
#ifdef
<->#endif
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: