繁体   English   中英

有没有可以在Mono上运行的F#IDE?

[英]Is there any F# IDE that works over Mono?

我在Mac上使用F#,我想知道是否有任何F#IDE可以在单声道上工作(不是通用编辑器)。 MonoDelvelop似乎有一个插件 ,但我认为它可能还不够成熟。 有什么建议吗?

强大的文字我实际上开始为MonoDevelop开发一个新的F#绑定。 一旦我有值得分享的东西,我会立即发布新闻。

很奇怪,似乎我无法在我的答案中添加评论......无论如何,我想从基本功能开始,允许创建和编译F#项目。 完成后我会考虑实现自动完成等事情。

更新:由于最近我们的家庭成员,我无法完成我的工作。 幸运的是,其他人接受了这项工作,他的工作成果来自: http//github.com/vasili/FSharpBinding

我认为MonoDevelop插件将是您最好的选择。 不幸的是,在这一点上,要求一个成熟的F#编译器(甚至在Windows上)有点紧张。

它甚至没有在Windows上正式发布(CTP仍然用于VS 2008,而2010仍然是Beta)。

我使用Aquamacs和一些钩子进入图阿雷格模式。 - 没有.Net完成(这里有C#模式),但是dabrev模式:

;; F# specific configs 
;; hooked ocaml tuareg mode. If you do ML with mono e. g. 
(add-to-list 'load-path "~/.elisp/tuareg-mode")
    (autoload 'tuareg-mode "tuareg" "Major mode for editing Caml code" t)
    (autoload 'camldebug "camldebug" "Run the Caml debugger" t)
    (autoload 'tuareg-imenu-set-imenu "tuareg-imenu" 
      "Configuration of imenu for tuareg" t) 
    (add-hook 'tuareg-mode-hook 'tuareg-imenu-set-imenu)
    (setq auto-mode-alist 
        (append '(("\\.ml[ily]?$" . tuareg-mode)
              ("\\.topml$" . tuareg-mode))
                  auto-mode-alist))

;; now we use *.fs files for this mode
(setq auto-mode-alist (cons '("\\.fs\\w?" . tuareg-mode) auto-mode-alist))

(add-hook 'tuareg-mode-hook
       '(lambda ()
       (set (make-local-variable 'compile-command)
        (concat "fsc \""
            (file-name-nondirectory buffer-file-name)
            "\""))))

(defun tuareg-find-alternate-file ()
  "Switch Implementation/Interface."
  (interactive)
  (let ((name (buffer-file-name)))
    (if (string-match "\\`\\(.*\\)\\.fs\\(i\\)?\\'" name)
    (find-file (concat (tuareg-match-string 1 name)
               (if (match-beginning 2) ".fs" ".fsi"))))))
  • 使用FSC从编辑器窗口编译
  • 使用Mono后端获得带语法高亮的交互式会话 替代文字
    (来源: 666kb.com

你可以从Ocaml获得语法高亮(非常相似),它会照顾空白区域。 我有一些问题要求来自Shell的FSI,因为它似乎在输入时有延迟。 我没有调查此问题并切换到VisualStudio。

另外还有一个Textmate F#包 我测试了半分钟,它的工作原理。 但是,您无法从VS获取Alt + Enter选项,以便在交互式提示下直接评估您标记的部件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM