Majorix

Majorix

VSCode Ctrl-Click To Go to Module

Hey guys, I am a newbie with Elixir so please bear with my question. How can I use the Ctrl+Click to go to the module that was aliased? In Javascript projects VSCode has this feature but I can’t seem to use it in an Elixir project.

Marked As Solved

benwilson512

benwilson512

Author of Craft GraphQL APIs in Elixir with Absinthe

Last Post!

carlheinz

carlheinz

Update:

After running a mix deps.get, things are all firing :man_facepalming:
How else would VSCode know :joy:

Hi Ben
Sorry to resurrect an old thread.
I’m sitting with the same issue but have ElixirLS installed.

This is my Elixir+Phoenix settings in my settings.json in VSCode.

  // elixir + phoenix

  "elixirLS.suggestSpecs": false,
  "elixirLS.dialyzerEnabled": true,
  "elixirLS.signatureAfterComplete": false,
  "elixirLS.fetchDeps": false,

  "[elixir]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "JakeBecker.elixir-ls"
  },

  "[phoenix-heex]": {
    "editor.formatOnSave": true,
    "editor.defaultFormatter": "JakeBecker.elixir-ls"
  },

  "files.associations": {
    "*.heex": "phoenix-heex",
    "*.exs": "elixir",
    "*.ex": "elixir",
    "**/*.html": "html",
  },

  "emmet.includeLanguages": {
    "phoenix-heex": "html",
    "elixir": "html",
    "html-eex": "html"
  },

  "tailwindCSS.includeLanguages": {
    "phoenix-heex": "html",
    "elixir": "html"
  },

  // elixir + phoenix

Extensions enabled:

Elixir Mix Formatter v1.0.1
ElixirLS: Elixir support and debugger v0.19.0
Phoenix Framework v0.1.2

I might be missing something or probably configured incorrectly…

Thanks
Carl-Heinz

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New

Other popular topics Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New

We're in Beta

About us Mission Statement