簡體   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