Ko Ga
Ko Ga

Reputation: 906

Syncing IntelliJ projects between different computers

I work on multiple projects from 3 different computers all using IntelliJ. I want the projects to be synced on all platforms. How can I do this?

Upvotes: 2

Views: 10732

Answers (3)

tishma
tishma

Reputation: 1885

By a complete accident (it's November 2024 today) I got into the situation of having the "same" PHPStorm project - in a sense that I've migrated entire mac to another - on both computers.

I don't know what feature it is (and I'd love to know), but I've created a file on one computer, and switched to the other, only to find that it's got the new file. Made a change, and in seconds - the change was on the first computer.

It looks like IntelliJ has some kind of account project sync across computers. To me that was completely unexpected, and a bit creepy to find turned on by default. I'd love to learn about the assumptions and limitations of that feature, but it doesn't appear to be very visible on product marketing surface.

I myself can think of a number of scenarios where I would rather not push changes to a remote VCS when I just need to switch computers, so I understand where this question came from.

Upvotes: 0

Jaroslav
Jaroslav

Reputation: 917

Appart from VCS mentioned in other answers/comments - this is of course must-have - try for example gitHub..

I use syncThing, which has a benefit (drawback for somebody), that it does not use any cloud stora-ge (it uses p2p), which is a benefit for me, because I can sync very quickly on home network without any middleman. It also works through the internet (but you are limited by the bandwidth of course). It has lot of features, including include/exclude rules (there need to be some exclusions to omit some intelliJ config related specific environment or the .git folder).

This way I can sync even some work-in-progress which I dont want to commit yet, or some config files ignored by VCS.

Upvotes: 6

Chii
Chii

Reputation: 14738

if you are not using a VCS (Version Control System), it's time you started. The most reasonable one to use at this time is Git, which is free.

To sync between computers for an intellij project, you can add the .idea project directory, the *.ipr files (if project files are stored in files, rather than directory) and the *.iml files in your project to the VCS, and share it amongst all the computers.

Upvotes: 4

Related Questions