Integration of Team Foundation Server (TFS) in sublime for version management

Source: Internet
Author: User

Sublime is an editor software with code highlighting, syntax hinting, auto-completion and quick response, sublime is popular with programmers because of its technical architecture, rich plugins, and lightweight and fast programmatic response. In C, C + +, JavaScript and other programming neighborhoods, many developers use sublime as their own integrated development environment (IDE). Sublime has rich plugin support for source code versioning, such as SVN, Git, CVS,TFS, etc. In this blog, I'll show you how to use sublime to connect to team Foundation Server to achieve version management of your source code.

Download and install plugins

Cduke has developed a good open source plugin, you can download the full-size package file from GitHub on the following connection Https://github.com/CDuke/sublime-tfs, then install the normal installation method, Copy the plug-in file to the sublime plugin directory, which is the screenshot of my experimental environment:

The procedure is very simple, you just need to copy the file to this directory. However, it is important to note that the directory name of the plugin must be "Sublime TFS", otherwise you will find that you cannot save the file when setting the SUBIME environment variable.

Reopen Sublime and you'll see a menu of "TFS" on the menu


Configuration parameters

"Tf_path"

Because the Sublime-tfs tool relies on TF.exe, the command-line tool for TFS, it requires that Team Explorer or any version of Visual Studio be installed on the developer's computer.

The path of TF.exe can be referred to as follows:

VS-(x86)-C:\Program Files (x86) \microsoft Visual Studio 10.0\common7\ide\tf.exe
VS-(x64)-C:\Program Files\Microsoft Visual Studio 10.0\common7\ide\tf.exe
VS-(x86)-C:\Program Files (x86) \microsoft Visual Studio 12.0\common7\ide\tf.exe
VS-(x64)-C:\Program Files\Microsoft Visual Studio 12.0\common7\ide\tf.exe
VS-(x86)-C:\Program Files (x86) \microsoft Visual Studio 14.0\common7\ide\tf.exe
VS-(x64)-C:\Program Files\Microsoft Visual Studio 14.0\common7\ide\tf.exe
VS-(x64)-C:/Program Files (x86)/microsoft Visual Studio/2017/enterprise/common7/ide/commonextensions/microsoft /teamfoundation/team Explorer/tf.exe

"Tfpt_path"

SUBLIME-TFS relies on the ability to implement annotate with TFS Power tools to query the author of the Code.

The TFPT path is generally referenced as follows:

VS-(x86)-C:\Program Files (x86) \microsoft Team Foundation Server Power Tools\tfpt.exe
VS-(x64)-C:\Program Files\Microsoft Team Foundation Server Power Tools\tfpt.exe
VS-(x86)-C:\Program Files (x86) \microsoft Team Foundation Server Power Tools\tfpt.exe
VS-(x64)-C:\Program Files\Microsoft Team Foundation Server Power Tools\tfpt.exe
VS-(x64)-(as of now, Microsoft has not released power Tools)

"Auto_checkout_enabled"

If you set its value to False, Sublime prompts you to confirm the checkout, otherwise sublime automatically checks out the modified file.

"Auto_checkout_timeout"

Sublime automatically waits during checkout to complete checkout

"Tfs_username" and "Tfs_password"

User name and password, it goes without saying. But if you've already saved your account in Windows credentials, there's no need to ignore it.

Precautions

In addition to the add command, all operations require true files that are already versioned by TFS. That is, you need to use Team Explorer, do a directory mapping, download the code you need to edit, and then use the menus in the Sublime-tfs tool.

(Microsoft ALM MVP Zhang Hongjun Http://www.cnblogs.com/danzhang )

Below is a Sublime check in the file screen, from here can be seen, SUBLIME-TFS is heavily dependent and TF.exe!


Finish

Integration of Team Foundation Server (TFS) in sublime for version management

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.