All Projects → jamesbirtles → svelte-vscode

jamesbirtles / svelte-vscode

Licence: MIT license
Svelte language support for VS Code

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to svelte-vscode

Svelte Component Template
A base for building shareable Svelte 3 components
Stars: ✭ 208 (-1.42%)
Mutual labels:  svelte
Svelte Forms Lib
📝. A lightweight library for managing forms in Svelte
Stars: ✭ 238 (+12.8%)
Mutual labels:  svelte
pos-mamba-sdk
SDK for developing in the Mamba web environment
Stars: ✭ 34 (-83.89%)
Mutual labels:  svelte
Parcel Plugin Svelte
A parcel plugin that enables svelte support
Stars: ✭ 214 (+1.42%)
Mutual labels:  svelte
Modular Css
A streamlined reinterpretation of CSS Modules via CLI, API, Browserify, Rollup, Webpack, or PostCSS
Stars: ✭ 234 (+10.9%)
Mutual labels:  svelte
Music Grid
A Music Grid you can play around and create short music.
Stars: ✭ 248 (+17.54%)
Mutual labels:  svelte
Awesome Svelte
⚡ A curated list of awesome Svelte resources
Stars: ✭ 204 (-3.32%)
Mutual labels:  svelte
svelte-multistep-form
Svelte MultiStep Form like, this component is still in beta stage
Stars: ✭ 29 (-86.26%)
Mutual labels:  svelte
Svelte Mui
Simple Svelte 3 UI components
Stars: ✭ 234 (+10.9%)
Mutual labels:  svelte
carbon-preprocess-svelte
Collection of Svelte preprocessors for the Carbon Design System
Stars: ✭ 39 (-81.52%)
Mutual labels:  svelte
Svelte Notifications
Simple and flexible notifications system
Stars: ✭ 217 (+2.84%)
Mutual labels:  svelte
Blockly Samples
Plugins, codelabs, and examples related to the Blockly library.
Stars: ✭ 222 (+5.21%)
Mutual labels:  svelte
Junglejs
The Jamstack static site framework for Svelte
Stars: ✭ 246 (+16.59%)
Mutual labels:  svelte
Svelte Vscode
Svelte language support for VS Code
Stars: ✭ 211 (+0%)
Mutual labels:  svelte
svelte-lottie-player
Lottie Player component for Svelte
Stars: ✭ 90 (-57.35%)
Mutual labels:  svelte
Svelte Storybook Tailwind
A starter template for Svelte, TailwindCSS and Storybook. You can easily start your project with this template, instead of wasting time figuring out configurations for each integration.
Stars: ✭ 204 (-3.32%)
Mutual labels:  svelte
Prettyhtml
💅 The formatter for the modern web https://prettyhtml.netlify.com/
Stars: ✭ 241 (+14.22%)
Mutual labels:  svelte
simple-todo
A browser extension that replaces the new tab page with a simple todo list
Stars: ✭ 56 (-73.46%)
Mutual labels:  svelte
sensor.community
✨ new shiny website built with svelte ❤️ for dust and noise measuring project 👉 https://sensor.community
Stars: ✭ 45 (-78.67%)
Mutual labels:  svelte
Storybook
📓 The UI component explorer. Develop, document, & test React, Vue, Angular, Web Components, Ember, Svelte & more!
Stars: ✭ 67,445 (+31864.45%)
Mutual labels:  svelte

Work is being continued in the official svelte language-tools repo

Svelte for VS Code

Provides syntax highlighting and rich intellisense for Svelte components in VS Code, utilising the svelte language server.

Features

  • Svelte
    • Diagnostic messages for warnings and errors
    • Support for svelte preprocessors that provide source maps
    • Svelte specific formatting (via prettier-plugin-svelte)
  • HTML
    • Hover info
    • Autocompletions
    • Emmet
    • Symbols in Outline panel
  • CSS / SCSS / LESS
    • Diagnostic messages for syntax and lint errors
    • Hover info
    • Autocompletions
    • Formatting (via prettier)
    • Emmet
    • Color highlighting and color picker
    • Symbols in Outline panel
  • TypeScript / JavaScript
    • Diagnostics messages for syntax errors, semantic errors, and suggestions
    • Hover info
    • Formatting (via prettier)
    • Symbols in Outline panel
    • Autocompletions
    • Go to definition
    • Code Actions

Using with preprocessors

Language specific setup

Generic setup

If a svelte file contains some language other than html, css or javascript, svelte-vscode needs to know how to preprocess it. This can be achieved by creating a svelte.config.js file at the root of your project which exports a svelte options object (similar to svelte-loader and rollup-plugin-svelte).

// svelte.config.js
const preprocess = require('my-example-svelte-preprocessor');

module.exports = {
    preprocess: [preprocess()],
    // ...other svelte options
};

It's also necessary to add a type="text/language-name" or lang="language-name" to your style and script tags, which defines how that code should be interpreted by the extension.

<div>
    <h1>Hello, world!</h1>
</div>

<style type="text/scss">
    div {
        h1 {
            color: red;
        }
    }
</style>

Settings

svelte.language-server.runtime

Path to the node executable you would like to use to run the language server. This is useful when you depend on native modules such as node-sass as without this they will run in the context of vscode, meaning v8 version mismatch is likely.

svelte.plugin.typescript.enable

Enable the TypeScript plugin. Default: true

svelte.plugin.typescript.diagnostics

Enable diagnostic messages for TypeScript. Default: true

svelte.plugin.typescript.hover

Enable hover info for TypeScript. Default: true

svelte.plugin.typescript.documentSymbols

Enable document symbols for TypeScript. Default: true

svelte.plugin.typescript.completions

Enable completions for TypeScript. Default: true

svelte.plugin.typescript.definitions

Enable go to definition for TypeScript. Default: true

svelte.plugin.typescript.codeActions

Enable code actions for TypeScript. Default: true

svelte.plugin.css.enable

Enable the CSS plugin. Default: true

svelte.plugin.css.diagnostics

Enable diagnostic messages for CSS. Default: true

svelte.plugin.css.hover

Enable hover info for CSS. Default: true

svelte.plugin.css.completions

Enable auto completions for CSS. Default: true

svelte.plugin.css.documentColors

Enable document colors for CSS. Default: true

svelte.plugin.css.colorPresentations

Enable color picker for CSS. Default: true

svelte.plugin.css.documentSymbols

Enable document symbols for CSS. Default: true

svelte.plugin.html.enable

Enable the HTML plugin. Default: true

svelte.plugin.html.hover

Enable hover info for HTML. Default: true

svelte.plugin.html.completions

Enable auto completions for HTML. Default: true

svelte.plugin.html.tagComplete

Enable HTML tag auto closing. Default: true

svelte.plugin.html.documentSymbols

Enable document symbols for HTML. Default: true

svelte.plugin.svelte.enable

Enable the Svelte plugin. Default: true

svelte.plugin.svelte.diagnostics.enable

Enable diagnostic messages for Svelte. Default: true

svelte.plugin.svelte.format.enable

Enable formatting for Svelte (includes css & js). Default: true

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].