-->

Are there any good F# text editors?

2020-06-02 13:11发布

问题:

Are there any good text editors for F#?

Instead of firing up resource-intensive Visual Studio, I would like to know if there are any text editors that can pretty-format F# code.

I am just getting started with F# and learning through FSI.exe with Notepad is giving me so much trouble...

回答1:

Check this out: F# Without Visual Studio



回答2:

Not to be too much of a tease, but looking ahead, VS2010 uses a new rehostable editor component, you can hear some about it here: Hanselminutes Podcast 147 - The new WPF-based Text Editor in Visual Studio 2010 - Interview with a Dev

Anyway, this means that the F# editing experience in VS can, in theory, be completely decoupled from VS and hosted in a lightweight editor. Which means it's possible F# could ship a sample or something that's 'the VS editing experience' (tooltips, squiggles, intellisense, ...) without VS.

To be clear, we on the F# team don't yet have any concrete plans to ship such a thing, but the new internal factoring of VS and the editor and MEF and whatnot should make this easy to do (we've prototyped it over a weekend, and it mostly works). So hopefully look forward to cool things in the future.



回答3:

Two other options:

  1. SharpDevelop with F# plugin from Robert Pickering.
  2. Visual Studio 2008 Shell with F# CTP


回答4:

Any editor which will handle OCaml should handle F# -okay-. Mostly you just needs tabs. I'd recommend KomodoEdit, personally.



回答5:

For notepad ++ someone made a file and put it up on the wiki:

http://notepad-plus.sourceforge.net/commun/userDefinedLang/userDefineLang_Fsharp.xml



回答6:

One other option:

  1. xacc.ide, a small ide that supports a bunch of .NET languages. But frankly, I haven't use it for a while since I'm really happy with Visual Studio 2008 (IntelliSense, interactive syntax checking, fsi, etc...).


回答7:

You can setup Sublime Text 2 to work with F# as described here http://blog.kulman.sk/using-sublime-text-2-as-f-repl/



回答8:

You can use Ionide package to integrate with Visual Studio Code (VS Code) or Atom editors.

Here is an article "F# Support in Visual Studio Code with Ionide"