-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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
Show Opening Tag when Closing Tag Selected #55075
Comments
(Experimental duplicate detection) |
Can confirm it's not a duplicate of any of those linked issues. |
Damn, sick idea definitely want this! |
Yes please, can't live without this. Gets people to stop doing the crazy along the end of a long chain of closing divs. |
Would the newly introduced breadcrumbs help here ? |
Really, NetBeans also has this feature. It's a lifesaver! It would be great, if it will be implemented. Really want this!) @alexandrudima, breadcrumbs is also great thing, but it works differently. Let me explain: Breadcrumbs only shows you filepath, file name, class name or function name. But, if your cursor is at the closing tag of some While, in NetBeans it will be: Idea simple as cake:
This feature saved me a lot of time and context switching, when I was using NetBeans for coding, because if i want to refresh, where I am, or what condition it was - just set cursor near the closing bracket (yep, tooltip is shown when cursor is right before/right after/inside tag). No need for scrolling up to the top thru all file just to see condition, and scrolldown back to place where you've been before!) |
@AlexHnydiuk This sums it up perfectly! This feature is one of the main reasons I can't switch to VS Code. |
https://marketplace.visualstudio.com/items?itemName=vincaslt.highlight-matching-tag could be extended with a tooltip. I'd prefer the "Go to Definition" and "Peek Definition" to work on a close tag, though. Alternatively, code folding works when starting from the top. "Emmet: Go to Matching Pair" works too, keybindings.json:
|
@alexandrudima Can you tell what's the complexity of this task is? I would love to work on this task but will need some thorough explaining. |
Please add this feature. |
There is bracket peek extension now! |
Add This feature |
+1 Would love this feature |
+1, as this should be integrated to the core. |
Although #26757 is not same, it's similar. |
Looks like this is still in Backlog Candidates after >= 20 upvotes and >= 60 days? |
Seems like this has been overlooked in error, despite its popularity? |
Yeah Need this badly |
Having the tooltip on the top of editor that shows the first line of block would be great, but the suggestion in this issue requires that you have displayed the closing bracket, which could be also outside of the screen when you are inside a very long block. Because of that I prefer the suggestion by @hediet on #134888 to have that toolip displayed if we just hover or click on the indent guide. |
Thanks a lot! Didn't know about this one. |
4 years approaching! :( |
*5 :(( |
The introduction of sticky scroll basically solves this issue. |
Sticky scroll can be used instead, but it will show more lines than needed and not always the necessary line if there are lots of them. Would be great to have exactly the proposed solution. I also tried mentioned extensions and none works well for Rust files. |
intelliJ / PHP Storm / etc. have this nifty little feature. When your cursor is at the end of a tag, if the opening tag is off the screen it will show it in a little floating window.
This makes it incredibly easy to keep track of exactly which closing tag you're at, especially useful for when you have to work in heavily nested templates.
The text was updated successfully, but these errors were encountered: