pranaygp / vscode-css-peek

A vscode extension for peeking at CSS definitions from a class or id tag in HTML
MIT License
142 stars 32 forks source link

[Feature Request] Work with HTML in one panel, CSS in another panel, side by side. #141

Closed slabcut closed 1 year ago

slabcut commented 1 year ago

Hi, Thank you for creating CSS Peek. It's great.

I like my editor set up with my HTML and CSS documents showing in two panel windows, side by side.HTML on the left, CSS on the right.

When i click an element class in my HTML and select 'goto definition', the editor opens up another copy of my CSS document in the left panel.

This results in my CSS document displayed in both panels, And my HTML document is hidden.

Is there a way for 'go to definition' to make the editor scroll to the appropriate class in my (already open) CSS document in the right Panel, leaving my view of the HTML document in the left panel alone?

slabcut commented 1 year ago

Hmm I have learned that This can be achieved by enabling workbench.editor.revealifopen in VS code settings. my apologies.