Realtime editing style in a snap!
Link: video demo
Idea behind, there is _nghost-${COMPONENT_VARIABLE}
in every component in Angular. I Create websocket that listen to the chrome extension, the chrome seek COMPONENT_VARIABLE
then send it to vscode
. After that, vscode mix it that component variable with style and send it to chrome extension. then it will update it.
you need install for this plugin to work with:
- Open Extensions sideBar panel in Visual Studio Code. View → Extensions
- Search for
SnapCss
then Click Install, Click Reload, if required - install chrome extension HERE if you not install yet
Imagine no more file saving or page reloading just to see how single update affects web page, realtime update style in browser immediately, as you type... How many time you can save? how fast we can build our application?
No need to waiting for JS framework build time to see your new style apply. Just type your new style and see the magic happen.
Base on this idea Livestyle. I'm writing an extension for VS code and Chrome that can help Angular developer (or frontend developer) can style faster. It call SnapCss that can updates CSS in browser immediately, as you type. No more file saving or page reloading just to see how single update affects web page.
Youtube video click on below image:
why my Console in Chrome browser keep yelling Error:
GET http://localhost:1995/socket.io/?EIO=3&transport=polling&t=MmnbD6d net::ERR_CONNECTION_REFUSED
???
- answer: Because you not open VSCode editor. You just open it and it will shut up or disable SnapCss chrome plugin.
- Still notworking if have @import() or ::ng-deep
- Project work perfect, dont know why it not crash anymore. Enable tracking by default
- project error crash 3: CHANGED: change from sass.js to PostCss. Start working normally
- Webpack bundle to make plugin faster.
- Multi workspace SnapCss editing.
- normal html/css website
- Angular 2+
- Ionic Angular
- Ionic Stencil
- React
- VueJS
- .NET
- PHP (lavarel)
- Wordpress
Give me the feedback, your request framework or new feature in here or email me: hiepxanh@gmail.com