Playing Next Lesson In
seconds

Let's Learn AdonisJS 6 #1.4

VS Code Extensions and Configuration

In This Lesson

We'll install three extensions for VS Code from the AdonisJS Core Team to make our lives easier as we build applications. We'll also configure Prettier and ESLint with auto-formatting and lint fixing on save.

Created by
@tomgobich
Published

Join the Discussion 8 comments

Create a free account to join in on the discussion
  1. @adonisdev

    I followed exactly same steps in VSCode for eslint and prettier installation and settings configuration for VS Code.

    But eslint does not seem to be working. I tried removing new line, removing semicolons at end.

    But I dont see eslint errors / suggestions.

    1
    1. Responding to adonisdev
      @tomgobich

      Hey there! A few things that come to mind that may turn off or disable ESLint are:

      • Ensure the ESLint extension is enabled in your VSCode workspace

      • Ensure the ESLint extension doesn't need a VSCode reload (would say "Reload VS Code" on the extension)

      • Ensure you have ESLint enabled within VS Code, you can find this within VS Code's settings by typing "eslint" within the search bar.

      1
  2. @redeemefy

    It looks like the edge extension got merged into the AdonisJS Extension?

    1
    1. Responding to redeemefy
      @tomgobich
      0
  3. It looks, this config doesn't work

    "[edge]":{

    "editor.defaultFormatter": "adonisjs.vscode-edge"

    },

    I tried to format the edge file but there is no formatter except html language. How to solve it?

    1
    1. Responding to fadli-hidayatullah
      @tomgobich

      Hi Fadli! Yeah, EdgeJS, at the moment, doesn't have formatting capabilities. Though there is an effort via a member of the community to get it added. I need to revisit a few portions of this lesson, one of which, is removing that line from my config as it doesn't do anything. Apologies about that!

      1
  4. @jeffrey

    Are you using a specific icon theme in VS code? My .edge file extensions are not rendered with the icon that I see in the video.

    1
    1. Responding to jeffrey
      @tomgobich
      1