wkwkes / vscode-idris

Idris for Visual Studio Code

Home Page:https://marketplace.visualstudio.com/items?itemName=zjhmale.Idris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Idris for Visual Studio Code

Version Installs Ratings

Build Status Build Status

Implemented features

Check out FEATURES.md to see screenshots for implemented features.

command shortcut
Typechecking shift + cmd/ctrl + alt + t
Show the types of a variable shift + cmd/ctrl + alt + o
Show the doc for a variable shift + cmd/ctrl + alt + d
Show the doc for a definition shift + cmd/ctrl + alt + f
Show holes shift + cmd/ctrl + alt + h
Add clause shift + cmd/ctrl + alt + a
Split case shift + cmd/ctrl + alt + c
Search proof shift + cmd/ctrl + alt + s
Make with shift + cmd/ctrl + alt + w
Make case shift + cmd/ctrl + alt + m
Make lemma shift + cmd/ctrl + alt + l
Apropos shift + cmd/ctrl + alt + k
Eval selected code shift + cmd/ctrl + alt + e
Start / Refresh REPL shift + cmd/ctrl + alt + r
Send selected code to REPL shift + cmd/ctrl + alt + x
Cleanup Idris binary files shift + cmd/ctrl + alt + u

Heads up: All the command above can also be triggered in the right-click menu

menu

  • ipkg highlighting
  • Auto-completion
  • Show type definition on hover
  • Type checking on saving file

Installation

  1. Within Visual Studio Code, open the command palette (Ctrl-Shift-P / Cmd-Shift-P).
  2. Select Install Extension and search for 'Idris' or run ext install Idris.
  3. Download Idris and make sure the idris executable is on your PATH.

Contributing

Check out CONTRIBUTING.md.

Options

The following Visual Studio Code settings along with their default values that are available for the Idris extension. If you want to change any of these, you can do so in user preferences (cmd+,) or workspace settings (.vscode/settings.json). You don't have to copy these if you don't intend to change them.

{
    "idris.executablePath": "idris", // The full path to the idris executable.
    "idris.hoverMode": "fallback",   // Controls the hover behavior. 'info' will display Idris documentation, 'type' will display Idris type, 'fallback' will try 'info' first and fallback to 'type' if we can not get the documentation, and 'none' will disable hover tooltips.
    "idris.suggestMode": "allWords"  // Controls the auto-completion behavior. 'allWords' will always include all words from the currently opened documentation, 'replCompletion' will get suggestions from Idris REPL process.
}

Acknowledgements

License

BSD 3-Clause, the same as Idris.

About

Idris for Visual Studio Code

https://marketplace.visualstudio.com/items?itemName=zjhmale.Idris

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:JavaScript 100.0%