vizhub-core / vzcode

Mob Programming Code Editor
MIT License
69 stars 14 forks source link

Support Autocomplete in CSS Files #516

Open nitanagdeote opened 8 months ago

nitanagdeote commented 8 months ago

image

Incorporating automatic suggestions in the style file, similar to what is available in index.js, would significantly enhance the coding experience. This feature would streamline the development process by providing real-time, context-aware suggestions for CSS properties and values, improving efficiency and reducing the likelihood of errors.

curran commented 8 months ago

Excellent idea!

Some thoughts on how we might make this happen...

Currently the completions are powered by TypeScript Language Server. That system only works with JavaScript/TypeScript/JSX files, not CSS or HTML. For the CSS and HTML files, we can consider enabling a simpler autocomplete system based on https://codemirror.net/examples/autocompletion/