This extension extends HTML and ejs code editing with Go To Definition
support for css (classes and IDs) found in strings within the source code.
This was heavily inspired by a similar feature in Brackets called CSS Inline Editors.
The extension supports all the normal capabilities of symbol definition tracking, but does it for css selectors (classes and IDs). This includes:
- Peek: load the css file inline and make quick edits right there. (
Ctrl+Shift+F12
) - Go To: jump directly to the css file or open it in a new editor (
F12
) - Hover: show the definition in a hover over the symbol (
Ctrl+hover
)
See editor docs for more details
Contributions are greatly appreciated. Please fork the repository and submit a pull request.
- Fix an error wherby the Overview was missing on the Visual Studio Marketplace
- A complete rewrite featuring the new Language Server Protocol
- Added scss support
- Added multi definition support (provides all CSS rules matching the selector)
- Added support for HTML tag selectors
- New Logo
- Add configuration option to ignore file from CSS lookup
- Crucial bug fix
- Workaround for bug if large number of files exist
- Better recognition of CSS selector word from cursor position
- Optimize code for fewer file lookups
- Fix README typo
- Add
less
support - Configure search file extensions using "css_peek.searchFileExtensions"
- Update Icon
- Shamelessly copied code from https://github.com/abierbaum/vscode-file-peek