vscode-endwise

May 8, 2026 ยท View on GitHub

This is an extension that wisely adds closing keywords to code structures in languages like Ruby, Crystal, Elixir, Julia, Lua, Makefiles, or Bash while keeping the correct indentation levels. Inspired by tpope's endwise.vim.

Endwise

Hit enter after a block opener to get your block automagically closed.

ctrl+enter / cmd+enter closes from the middle of the line as well.

TODO

  • Wisely detect already closed blocks to skip additional "end"'s
  • Add support for more languages:
    • Crystal
    • Elixir
    • Julia
    • Lua
    • Makefiles
    • Bash
  • Add a gif with code that actually makes sense ๐Ÿ™„