# Using VSCode on Windows

**URL:** <https://discuss.ocaml.org/t/using-vscode-on-windows/423>\
**Category:** Community\
**Created:** [June 16, 2017, 9:42am UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423 "2017-06-16T09:42:33Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![bltxd](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bltxd](https://discuss.ocaml.org/u/bltxd)\
**Post date:** [June 16, 2017, 9:42am UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/1 "2017-06-16T09:42:33Z")

</div>

Hello,

My setup is currently Emacs + Tuareg and I was considering giving a try to VSCode + vscode-ocaml.  
I peeked at the installation instructions and some of the existing bug reports but I got the feeling nobody uses it on Windows.

What would be the status of this kind of setup ?  
Has anyone tried ?

Regards

---

<div class="post-metadata">

**Author:** ![yawaramin](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/yawaramin/32/3384_2.png) [@yawaramin](https://discuss.ocaml.org/u/yawaramin)\
**Post date:** [June 17, 2017, 7:20am UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/2 "2017-06-17T07:20:56Z")

</div>

Hi, if you’ve already got a working OCaml environment on Windows, including OPAM and Merlin (probably a Cygwin environment, right?), you just need to make sure you open up VSCode from that Cygwin shell where the OPAM environment settings are defined. Then VSCode and the OCaml extension should pick up your Merlin setup.

---

<div class="post-metadata">

**Author:** ![bltxd](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bltxd](https://discuss.ocaml.org/u/bltxd)\
**Post date:** [June 18, 2017, 2:19pm UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/3 "2017-06-18T14:19:51Z")

</div>

My setup includes a basic Cygwin which is mainly used to build OCaml (Mingw chain) and a few select packages (ocamlfind, xmlm, ocamlgraph).

Using the full Cygwin chain is not an option.

If all I need is working versions of OPAM and Merlin, I guess the question boils down to whether or not the Windows port of OPAM was completed.  
Could someone knowledgeable provide us with a status update?

Best regards.

---

<div class="post-metadata">

**Author:** ![fdopen](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/fdopen/32/452_2.png) [@fdopen](https://discuss.ocaml.org/u/fdopen)\
**Post date:** [June 19, 2017, 12:42pm UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/4 "2017-06-19T12:42:15Z")

</div>

opam status: [https://sympa.inria.fr/sympa/arc/caml-list/2017-01/msg00115.html](https://sympa.inria.fr/sympa/arc/caml-list/2017-01/msg00115.html)

There is a reddit thread with setup instructions: [https://www.reddit.com/r/ocaml/comments/6125nq/setting\_up\_ocaml\_in\_windows\_to\_work\_with\_visual/](https://www.reddit.com/r/ocaml/comments/6125nq/setting_up_ocaml_in_windows_to_work_with_visual/)  
It should work with the mingw and msvc port (but not the cygwin port)

---

<div class="post-metadata">

**Author:** ![bltxd](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bltxd](https://discuss.ocaml.org/u/bltxd)\
**Post date:** [June 19, 2017, 1:51pm UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/5 "2017-06-19T13:51:44Z")

</div>

Nice!

I’m gonna try this and let you know how it goes.

Thanks.

---

<div class="post-metadata">

**Author:** ![bltxd](https://avatars.discourse-cdn.com/v4/letter/b/839c29/32.png) [@bltxd](https://discuss.ocaml.org/u/bltxd)\
**Post date:** [July 30, 2017, 2:27pm UTC](https://discuss.ocaml.org/t/using-vscode-on-windows/423/6 "2017-07-30T14:27:17Z")

</div>

I tried twice in July and could not complete the installation due to Cygwin being unable to complete its own install for some reason I did not investigate.

Eventually it got fixed on their side and the rest of the install went smoothly.

Preliminary testing is really positive. The integration within VS Code works like a charm.

Thanks all and keep up the great work!
