Hover Preview: My First VsCode extension to preview on hover [Beta release]

So we have all been there, We see someone else’s code like this and panic, because we don’t understand what it does at the first glance.

But now with hover preview you can get a quick sneak peak to how it would look like when you hover over the snip…


This content originally appeared on DEV Community and was authored by paul

So we have all been there, We see someone else's code like this and panic, because we don't understand what it does at the first glance.

Vscode snippet

But now with hover preview you can get a quick sneak peak to how it would look like when you hover over the snippets or HTML elements.

Preview

Download Hover preview

You can get Hover preview on VsCode marketplace

Please note that its still in development and released under beta release

Why Hover preview?

I built this for couple of reasons.

  1. Reading someone else's code is not fun, a quick preview of what section does would make it much more easier to understand.

  2. If you are a beginner or learning a new CSS library or framework it can become hard to understand what's going on, so a visual cue would be much helpful.

  3. Lesser toggling between browser and vscode.

Limitations

  1. Currently works only for Html files, not for component based libraries or frameworks

  2. Cannot preview animations (eg: css animations).

  3. No interactions: you cannot interact with the preview.

Roadmap

Hover preview is still work in progress and will soon come with more configurations and support. You can check out the hover preview roadmap

Source code and links

  1. Hover preview source code
  2. VsCode marketplace


This content originally appeared on DEV Community and was authored by paul


Print Share Comment Cite Upload Translate Updates
APA

paul | Sciencx (2024-07-21T00:02:11+00:00) Hover Preview: My First VsCode extension to preview on hover [Beta release]. Retrieved from https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/

MLA
" » Hover Preview: My First VsCode extension to preview on hover [Beta release]." paul | Sciencx - Sunday July 21, 2024, https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/
HARVARD
paul | Sciencx Sunday July 21, 2024 » Hover Preview: My First VsCode extension to preview on hover [Beta release]., viewed ,<https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/>
VANCOUVER
paul | Sciencx - » Hover Preview: My First VsCode extension to preview on hover [Beta release]. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/
CHICAGO
" » Hover Preview: My First VsCode extension to preview on hover [Beta release]." paul | Sciencx - Accessed . https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/
IEEE
" » Hover Preview: My First VsCode extension to preview on hover [Beta release]." paul | Sciencx [Online]. Available: https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/. [Accessed: ]
rf:citation
» Hover Preview: My First VsCode extension to preview on hover [Beta release] | paul | Sciencx | https://www.scien.cx/2024/07/21/hover-preview-my-first-vscode-extension-to-preview-on-hover-beta-release/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.