Giter Club home page Giter Club logo

vscode_extension_svelte_require's Introduction

This module can import or require Svelte files, node modules and local files into Svelte files.

It properly puts the imports within Svelte's script tag and keeps the imports organized.

Use the command dialog or the shortcut Ctrl+Shift+1. You can also use Ctrl+Shift+2 to import/require and insert the reference at the current cursor position.

Require Example

For destructuring import use ctrl+shift+3. First select module, then select one or more export properties.

Destructuring Example

Features

  • Require core modules, dependencies / devDependencies or local files.
  • New requires will be added to the end of the require block in top of file.
  • The style (import vs require) will be auto-detected one a per-file level. It will ask for the first dependency.
  • Typical naming substitutions (for example, lodash will be named _ and jQuery will be $).
  • If the import already exists, it will not add a duplicate.

Acknowledgements

This module is a fork from tgreen7's Node Require which is a fork of Bitkompagniet Node Require, which was itself a fork of Quick Require. The typical namings were taken from NodeRequirer for Sublime Text.

vscode_extension_svelte_require's People

Contributors

tgreen7 avatar kparkov avatar nickyhajal avatar ml-milkmidi avatar serg1k312 avatar benroe avatar rexxars avatar jhnns avatar tnrich avatar

Stargazers

Alex Front avatar  avatar Nick Reese avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.