Using Emacs as an IDE

后端 未结 18 1831
清酒与你
清酒与你 2020-11-29 14:29

Currently my workflow with Emacs when I am coding in C or C++ involves three windows. The largest on the right contains the file I am working with. The left is split into

18条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-29 14:49

    There's a TFS.el for emacs integration into Microsoft TFS. It works with any TFS, including the TFS that runs Codeplex.com.

    Basic steps to setup:

    1. Place tfs.el in your load-path.

    2. In your .emacs file:

      (require 'tfs)
      (setq tfs/tf-exe  "c:\\vs2008\\common7\\ide\\tf.exe")
      (setq tfs/login "/login:domain\\userid,password")
            -or-
      (setq tfs/login (getenv "TFSLOGIN"))  ;; if you have this set
      
    3. also in your .emacs file, set local or global key bindings for tfs commands. like so:

      (global-set-key  "\C-xvo" 'tfs/checkout)
      (global-set-key  "\C-xvi" 'tfs/checkin)
      (global-set-key  "\C-xvp" 'tfs/properties)
      (global-set-key  "\C-xvr" 'tfs/rename)
      (global-set-key  "\C-xvg" 'tfs/get)
      (global-set-key  "\C-xvh" 'tfs/history)
      (global-set-key  "\C-xvu" 'tfs/undo)
      (global-set-key  "\C-xvd" 'tfs/diff)
      (global-set-key  "\C-xv-" 'tfs/delete)
      (global-set-key  "\C-xv+" 'tfs/add)
      (global-set-key  "\C-xvs" 'tfs/status)
      (global-set-key  "\C-xva" 'tfs/annotate)
      (global-set-key  "\C-xvw" 'tfs/workitem)
      

提交回复
热议问题