All Projects → hackwaly → Vscode Ocaml

hackwaly / Vscode Ocaml

Licence: mit
An extension for VS Code which provides support for the OCaml language.

Programming Languages

typescript
32286 projects
ocaml
1615 projects

Projects that are alternatives of or similar to Vscode Ocaml

Kailua
🌴 Type Checker and IDE Support for Lua
Stars: ✭ 152 (-13.14%)
Mutual labels:  vscode-extension
Vscode Auto Rename Tag
Automatically rename paired HTML/XML tag
Stars: ✭ 161 (-8%)
Mutual labels:  vscode-extension
Git History
Quickly browse the history of a file from any git repository
Stars: ✭ 12,676 (+7143.43%)
Mutual labels:  vscode-extension
Vscodethemes
Themes for Visual Studio Code
Stars: ✭ 155 (-11.43%)
Mutual labels:  vscode-extension
Webtemplatestudio
Microsoft Web Template Studio quickly builds web applications using a wizard-based UI to turn your needs into a foundation of best patterns and practices
Stars: ✭ 1,946 (+1012%)
Mutual labels:  vscode-extension
Vscode
Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
Stars: ✭ 161 (-8%)
Mutual labels:  vscode-extension
Markdown Links
Command that displays a graph of local links between markdown files
Stars: ✭ 152 (-13.14%)
Mutual labels:  vscode-extension
Waypoint
📍 VSCode extension for navigating JS codebases
Stars: ✭ 174 (-0.57%)
Mutual labels:  vscode-extension
Vscode Colorize
A vscode extension to help visualize css colors in files
Stars: ✭ 160 (-8.57%)
Mutual labels:  vscode-extension
Vscode Vite
One step faster for Vite in VS Code ⚡️
Stars: ✭ 168 (-4%)
Mutual labels:  vscode-extension
Vscode Codeql
An extension for Visual Studio Code that adds rich language support for CodeQL
Stars: ✭ 154 (-12%)
Mutual labels:  vscode-extension
Dance
Make your cursors dance with Kakoune-like keybindings for VS Code.
Stars: ✭ 157 (-10.29%)
Mutual labels:  vscode-extension
Sublimetext Sqltools
SQLTools for Sublime Text 3
Stars: ✭ 166 (-5.14%)
Mutual labels:  vscode-extension
Vscode Tlaplus
TLA+ language support for Visual Studio Code
Stars: ✭ 152 (-13.14%)
Mutual labels:  vscode-extension
Langserver Swift
A Swift implementation of the open Language Server Protocol.
Stars: ✭ 171 (-2.29%)
Mutual labels:  vscode-extension
Metago
MetaGo provides fast cursor movement/selection for keyboard focused users in vscode
Stars: ✭ 151 (-13.71%)
Mutual labels:  vscode-extension
Vscode Kotlin
Kotlin language support for VS Code
Stars: ✭ 161 (-8%)
Mutual labels:  vscode-extension
Vscode Journal
Lightweight journal and simple notes support for Visual Studio Code
Stars: ✭ 174 (-0.57%)
Mutual labels:  vscode-extension
Svn Scm
SVN support for VS Code
Stars: ✭ 172 (-1.71%)
Mutual labels:  vscode-extension
Nim
Streamline Your Node.js Debugging Workflow with Chromium (Chrome, Edge, More) DevTools.
Stars: ✭ 168 (-4%)
Mutual labels:  vscode-extension

If you are seeking for an OCaml debugger vscode extension. Take a look at ocamlearlybird.

Deprecated. Please use this official extension instead.

Features

  • Basic syntax highlighting for *.ml, *.mli, *.mly and *.mll. ported from textmate
  • Auto-completion (aka. IntelliSense). powered by ocamlmerlin
  • Error check on the fly (aka. Lint). powered by ocamlmerlin
  • Show type information on hover. powered by ocamlmerlin
  • Peek and goto definition (also provide a symbol list). powered by ocamlmerlin
  • Auto indent on your type. powered by ocp-indent
  • Debugger integrated. powered by ocamldebug
  • UTop integrated. since v0.6.2

features

debugger

Requirements

opam install merlin
opam install ocp-indent

Extension Settings

This extension contributes the following settings:

  • ocaml.ocpIndentPath: Path to ocp-indent.
  • ocaml.merlinPath: Path to ocamlmerlin.
  • ocaml.replPath.windows or ocaml.replPath.unix: Path to ocaml REPL, eg "ocaml.exe", "utop".
  • ocaml.lintDelay: Time to delay lint when made changes.
  • ocaml.lintOnChange: Do lint when made changes.
  • ocaml.lintOnSave: Do lint when save document.

Tips

1). In VS Code, *.ml is associated to F# by default, You need manually config this in settings.json to make OCaml mode work with *.ml file.

	"files.associations": {
		"*.ml": "ocaml",
		"*.mli": "ocaml"
	}

2). You need build with -bin-annot flag and set build folder in .merlin to get goto definitions works cross files.

3). Did you know vscode-ocaml works perfect with .vscode/tasks.json. Here is an example:

# Makefile
build:
	ocamlbuild -use-ocamlfind main.d.byte
clean:
	ocamlbuild -clean
.PHONY: build clean
// .vscode/tasks.json
{
	"version": "0.1.0",
	"command": "make",
	"showOutput": "always",
	"tasks": [{
		"taskName": "clean"
	}, {
		"taskName": "build",
		"problemMatcher": "$ocamlc"
	}]
}
// .vscode/launch.json
{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "OCaml",
            "type": "ocamldebug",
            "request": "launch",
            "program": "${workspaceRoot}/main.d.byte",
            "stopOnEntry": false,
            "preLaunchTask": "build" // Build before launch
        }
    ]
}

Known Issues

See https://github.com/hackwaly/vscode-ocaml/issues?q=is%3Aopen+is%3Aissue+label%3Abug

Release Notes

0.6.0

Support launch debug target in Integrated Terminal. Add a command to switch between module implementation/signature. Support Find references in file. UTop integrated. Add opam switch command. More Info

0.5.0

Support debug variable paging. Support highlight occurrences and refactor in file. More Info

0.4.0

Add Windows debug support. Add remote debug support.

0.3.0

Add keywords completion. Add Menhir syntax over OCamlyacc syntax.

0.2.0

Add debugger (ocamldebug) support.

0.1.0

First published version.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].