Skip to content

Latest commit

 

History

History
29 lines (25 loc) · 740 Bytes

README.md

File metadata and controls

29 lines (25 loc) · 740 Bytes

elixir-module README

Features

This extension gives two commands to copy the closest module name:

  1. "Copy short module name". Example:
defmodule MyProject.MyDomain.MyEntity do
end

If the cursor is located within the module the command will copy only MyEntity to the clipboard.

  1. "Copy full module name". Example:
defmodule MyProject.MyDomain.MyEntity do
end

If the cursor is located within the module the command will copy the whole MyProject.MyDomain.MyEntity to the clipboard.

Example of nested modules:

defmodule A.B do
  defmodule C do
    defmodule D do
    end
  end
end

If the cursor is located within the D module the command will copy the whole A.B.C.D to the clipboard.