How do I integerate Visual Studio Online (a.k.a., TFS Online) with IntelliJ 14.1.4 ?

I regularly use Visual Studio Online (unfortunately mis-named by Microsoft - it should really be named "TFS Online" because that's what it really is) as my version control system (VCS) with Visual Studio 2013 and Visual Studio 2015 from several computers with no trouble (i.e., can add new projects, check-in, check-out, create shelve sets, etc.).

However, I cannot figure out the correct values to plug into IntelliJ 14.1.4 Ultimate's dialog that appears when I traverse VCS / TFS / Edit Configuration... / Add ...

I don't want to expose my true URI that I use to connect to Visual Studio Online, but assume for the sake of this question that it is abc.visualstudio.com/DefaultCollection and that, when I view it from inside Visual Studio, I see a top-level folder named TrainingAndDemos with all my "projects" underneath.

After I click the Add ... button in the IntelliJ dialog, I'm presented a modal popup form with the following boxes (some of which remain disabled until I change the Auth: dropdown listbox).

Address:
Auth: choices are NTLM (system credentials), NTLM or Alternate.
User name:
Domain:
Password:
[] save password checkbox

I have tried various combinations of Address (with and without http: or https: prefix), Auth, User Name and, of course, password, but always get the following error, no mater what combination of entries I type into that dialog:

Host contacted, but no TFS service found.

Is there some place with a detailed, step-by-step example I can follow?  I've search your site, but cannot find that type of information.

9 comments
Comment actions Permalink

In general, you should enable alternate credentials in your Visual Studio Online profile. Then select "Alternate" in IDEA authentication dialog and use your primary user name and password to connect.

Note that likely you'll get the following error - https://youtrack.jetbrains.com/issue/IDEA-140214. The fix for this should be available in IDEA 14.1.5.

0
Comment actions Permalink

Update 2015-08-22

I still cannot connect to TFS online via IntelliJ 14.1.4.

I'm still searching for detailed, step-by-step instructions on how to connect IntellIj to TFS online.

I'm willing to pay for support to get this resolved.

0
Comment actions Permalink

Microsoft just released an IntelliJ plugin that will allow you to integrate with VSO/TFS.
You can find the download instructions here: http://java.visualstudio.com/Downloads/intellijplugin/Index
The documentation on how to use it can be found here: http://java.visualstudio.com/docs/tools/intelliJ

I can help you out if you have anymore questions!

0
Comment actions Permalink

The IntelliJ plugin found at http://java.visualstudio.com/Downloads/intellijplugin/Index is to allow IntelliJ to connect to VSO Git repositories.  So it doesn't support Team Foundation Version Control (TFVC).

Using IntelliJ Ultimate Edition 14.1.5, I can successfully connect to a TFVC-based team project on an account on VSO.  You do need to use alternate credentials but it does work.

Using Community Edition, I was also able to connect using the "Team Foundation Server - Version Control Integration" plugin, version 0.1.3.7.

0
Comment actions Permalink

To authentication with Visual Studio Online you can use a username and password but you have to enable alternate credentials or personal access tokens.

Personal Access Token or PAT is more secure and recommended: https://msdn.microsoft.com/Library/vs/alm/Code/git/command-prompt#pat (username can be empty or any string and PAT will be the password)
Alternate credentials: https://msdn.microsoft.com/Library/vs/alm/Code/git/command-prompt#altcred

Hope this helps.

Thanks,
Madhuri

0
Comment actions Permalink

I still cannot connect *ANY* JetBrains product to Visual Studio Online (essentially TFS "online" ).

I use Visual Studio 2015 to perform all VCS operations because it's impossible to do so through *ANY* JetBrains products.

0
Comment actions Permalink

There is currently no plugin from Microsoft that allows connecting to Visual Studio Team Services (previously Visual Studio Online) if you are using TFVC. JetBrains has a plugin for IntelliJ ultimate edition (http://plugins.jetbrains.com/plugin/4578?pr=idea) but they don't claim to support Visual Studio Team Services.

Please consider voting on this user voice item to create a TFVC plugin for IntelliJ and Android Studio: https://visualstudio.uservoice.com/forums/330519-team-services/suggestions/6785457-tfs-plugin-for-android-studio

You can consider using the command line client to do the tf operations from outside the IDE, this would be better than onedrive but not the same as an integrated IDE experience. There is a cross platform command line client (java based) available : http://www.microsoft.com/en-us/download/details.aspx?id=47727


Sorry we don't have a great solution for your problem.



Thanks,
Madhuri
Senior Software Engineer
Visual Studio Team Services
0
Comment actions Permalink

Have you configured "Alternate authentication credentials" under the "Security" tab in your Visual Studion Team Services profile?

0
Comment actions Permalink

No, I have not configured alternate security for TFS Online.

Why would I expose yet another way to mount an attack on my online TFS repository by defining additional ways to get into it?

Minimize the attack surface.  That should be rule one for everybody.

I will continue to use Visual Studio for my SCCM so that I have only one set of credentials to maintain.

It sounds like JetBrains has no interest in working directly with TFS "natively".

So, I will continue this weird, bifurcated way of checking in/out source code from Visual Studio Online (a.k.a., TFS "Online") and switch to whatever JetBrains IDE I need to use.

0

Please sign in to leave a comment.