IntelliJ Elixir v4.3.0
README changes
Completion
Aliases and Modules
When you start typing an Alias, completion will look in three locations:
-
alias
aliased names in the current file a.Suffix
foralias Prefix.Suffix
b.MultipleAliasA
orMultipleAliasB
foralias Prefix.{MultipleAliasA, MultipleAliasB}
c.As
foralias Prefix.Suffix, as: As
-
Indexed module names (as available from Go To Symbol)
a.
Prefix.Suffix
fromdefmodule Prefix.Suffix
b.MyProtocol
fromdefprotocol MyProtocol
c.MyProtocol.MyStruct
i.defimpl MyProtocol, for: MyStruct
ii.defimpl MyProtocol
nested underdefmodule MyStruct
-
Nested modules under aliased names
a.
Suffix.Nested
foralias Prefix.Suffix
wherePrefix.Suffix.Nested
is an indexed module, implementation or protocol name. b.MultipleAliasA.Nested
foralias Prefix.{MultipleAliasA, MultipleAliasB}
wherePrefix.MultipleAliasA.Nested
alias Prefix.{MultipleAliasA, MultipleAliasB}
is an indexed module, implementation or protocol name. c.As.Nested
foralias Prefix.Suffix, as: As
wherePrefix.Suffix.Nested
is an indexed module, implementation, or protocol name.
Go To Declaration
Go To Declaration is a feature of JetBrains IDEs that allows you to jump from the usage of a symbol, such as a Module
Alias, to its declaration, such as the defmodule
call.
Alias
-
Place the cursor over an Alias with an aliased name setup by
alias
a.Suffix
ifalias Prefix.Suffix
called b.MultipleAliasA
ifalias Prefix.{MultipleAliasA, MultipleAliasB}
called c.As
ifalias Prefix.Suffix, as: As
-
Activate the Go To Declaration action with one of the following:
a.
Cmd+B
b. Select Navigate > Declaration from the menu. c.Cmd+Click
-
A Go To Declaration lookup menu will appear, allowing you to jump either the
alias
that setup the aliased name or jumping directly todefmodule
of the unaliased name. Select which declaration you want a. Use arrow keys to select and hitEnter
b.Click
Read next Elixir Hunt - Find your next Elixir Job