IntelliJ Elixir v4.3.0
README changes
Completion
Aliases and Modules
When you start typing an Alias, completion will look in three locations:
-
aliasaliased names in the current file a.Suffixforalias Prefix.Suffixb.MultipleAliasAorMultipleAliasBforalias Prefix.{MultipleAliasA, MultipleAliasB}c.Asforalias Prefix.Suffix, as: As -
Indexed module names (as available from Go To Symbol)
a.
Prefix.Suffixfromdefmodule Prefix.Suffixb.MyProtocolfromdefprotocol MyProtocolc.MyProtocol.MyStructi.defimpl MyProtocol, for: MyStructii.defimpl MyProtocolnested underdefmodule MyStruct -
Nested modules under aliased names
a.
Suffix.Nestedforalias Prefix.SuffixwherePrefix.Suffix.Nestedis an indexed module, implementation or protocol name. b.MultipleAliasA.Nestedforalias Prefix.{MultipleAliasA, MultipleAliasB}wherePrefix.MultipleAliasA.Nestedalias Prefix.{MultipleAliasA, MultipleAliasB}is an indexed module, implementation or protocol name. c.As.Nestedforalias Prefix.Suffix, as: AswherePrefix.Suffix.Nestedis 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
aliasa.Suffixifalias Prefix.Suffixcalled b.MultipleAliasAifalias Prefix.{MultipleAliasA, MultipleAliasB}called c.Asifalias Prefix.Suffix, as: As -
Activate the Go To Declaration action with one of the following:
a.
Cmd+Bb. Select Navigate > Declaration from the menu. c.Cmd+Click -
A Go To Declaration lookup menu will appear, allowing you to jump either the
aliasthat setup the aliased name or jumping directly todefmoduleof the unaliased name. Select which declaration you want a. Use arrow keys to select and hitEnterb.Click
Read next Elixir Hunt - Find your next Elixir Job
