Giter Club home page Giter Club logo

vscode-elixir's Introduction

Elixir Support for Visual Studio Code

Download Download Gitter Build Status

Read the CHANGELOG to see what has changed in this extension over time.

This extension adds rich elixir language support to VS Code including:

  • Syntax Coloring
  • Snippets
  • Intellisense

Features

Autocomplete

example

Problems

problems

Theme used in the examples: 'Atom One Dark'

Using

Make sure you have installed elixir with all its dependencies correctly and make sure it's in your path. You can check this by typing elixir --version into a terminal.

There currently is no option to change the path of the elixir executable. If you feel like there is a need for this, feel free to open up a pull request.

Autocomplete

Autocomplete/Intellisense is implemented using the wonderful ElixirSense project. For the auto complete to work properly, you will have to recompile your source code from time to time (using mix compile) for it to pick up the latest changes to your source code.

If your are having issues with the new implmentation you can switch back to the old one (alchemist server) by setting the property elixir.useElixirSense to false

Problem Reporting

To get compile warning / errors and test failures in your problem view, add the following to your .vscode/tasks.json:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "build",
      "type": "shell",
      "command": "mix compile",
      "problemMatcher": [
        "$mixCompileError",
        "$mixCompileWarning"
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    },
    {
      "label": "test",
      "type": "shell",
      "command": "mix test",
      "problemMatcher": [
        "$mixCompileError",
        "$mixCompileWarning",
        "$mixTestFailure"
      ],
      "group": {
        "kind": "test",
        "isDefault": true
      }
    }
  ]
}

See https://code.visualstudio.com/docs/editor/tasks for the documentation about tasks or https://code.visualstudio.com/docs/editor/tasks-appendix#_schema-for-tasksjson for the documentation about the tasks.json schema.

Emmet completions

To get Emmet support in html.eex files add the following to your user settings (Ctrl + ,):

"emmet.includeLanguages": {"HTML (Eex)": "html"}

Contributors

These wonderful people have so far contributed to this extension. Feel free to add your name here:

(This list is in no particular order.)

vscode-elixir's People

Contributors

asonge avatar eteeselink avatar fahrradflucht avatar guoliang avatar mackenza avatar mat-mcloughlin avatar maxmellen avatar mixmasterfresh avatar mjmcloug avatar moomerman avatar okjulian avatar optikfluffel avatar pbudzik avatar potterdai avatar securingsincity avatar timmhirsens avatar tmepple avatar torrick avatar untra avatar wraiford avatar zambal 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.