tags:

views:

1137

answers:

6

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...

+3  A: 

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

Tony k
@Anthony, do you know what template I should start with? I don't see either F# or OCaml... I am not sure what other languages is a derivative of OCaml.
Sung Meister
I actually just meant for having nice tabbing support. If you just start as a blank file, and then choose "View As Language", Erlang will provide some syntax highlighting on some keywords. Not a perfect solution - just a suggestion. (I'm using Komodo, not Kom.Edit, so I'm only assuming the View As Lang. feature is shared.)
Tony k
Would it handle F# layout (i.e. indentation) driven syntax okay?
Pavel Minaev
+8  A: 

Check this out: F# Without Visual Studio

Jose Basilio
Hmm. I haven't touched X/Emacs for like 5 years... Maybe I can check out VIM...(never tried it)
Sung Meister
I decided to give VIM a try.
Sung Meister
+8  A: 

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.

Brian
I think having the VS2010 CTP expire on 1 Jan was enough of a tease :P
MichaelGG
I will be looking forward to it. But in the meantime, I will try out VIM.
Sung Meister
+4  A: 

Two other options:

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

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...).
Stringer Bell
A: 

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

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

DrWiggly