Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I share settings for IntelliJ Idea across different projects?

In the month or so that I've been using IntelliJ, I have one project that I am working in the majority of the time in which I have all of my windows, toolbar locations, etc., set up to my liking.

I infrequently need to open other projects in IntelliJ, and I notice when doing so that all of the window locations seem to reset to the default. For example, the Structure toolbar moves back to the lower-left hand of the screen; I prefer for it to be docked in the upper-right hand corner.

Can settings for window and tool locations be shared across different IntelliJ projects? Can I configure this once globally, and have it apply to any new project I open in IntelliJ going forward?

Also, does anyone know where these types of settings are stored - I assume it's in the per-project IntelliJ files (such as .ipr, etc) rather than my global .settings directory?

like image 616
matt b Avatar asked Mar 15 '11 15:03

matt b


People also ask

Can you share projects on IntelliJ?

You can use IntelliJ IDEA to create a local Git repository and then share the project on GitHub by going to VCS > Share project on GitHub in the menu.


2 Answers

  1. Create new connection or go to connection "Properties" (Alt+ENTER)
  2. Find "Project Data Sources" on top left
  3. Select "Make Global" in context menu
like image 99
Alexander Ivanov Avatar answered Oct 12 '22 14:10

Alexander Ivanov


For IntelliJ-13/14, if you want reuse the connection to databases and the appservers you should copy-paste these files between the .idea folders of the projects.

  • dataSources.ids, dataSources.xml : Database stuff
  • workspace.xml : All the appservers configuration

Yes, this sucks, but at least there is a workaround.


EDIT: When you create/edit the datasource there is a combobox called "scope", you can select IDE option, and this will let you reuse the datasource across many projects.

like image 33
Sergio Avatar answered Oct 12 '22 14:10

Sergio