Where does IntelliJ IDEA store shelf changes on the local drive?
Asked Answered
G

7

46

I want to write a small backup script that would take my shelf changes in IntelliJ from my local drive and put them on a network drive. But I can't locate the path to where these are stored on my local drive.

Any ideas?

Guanabara answered 21/4, 2010 at 13:18 Comment(1)
Slightly different issue, but if Google took you here because you can't find your Shelf tab, check out my answer here: https://mcmap.net/q/75175/-how-to-restore-shelved-changes-in-intellij-when-the-shelf-tab-is-not-shownGallivant
I
28

For me it's $user.home/.IntelliJIdea90/config/shelf

I'm not sure if that changes on OSX or not. It seems like it might be different, but once you find the .IntelliJIdea90 directory, it's in /config/shelf.

Update for comment Here is my .IntelliJIdea80/config/shelf directory after shelving some changes in 8.1.3:

skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ ls
AnotherTestOfshelving.patch
skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ 

I'll startup my Windows VM and see if it's the same place on Windows.

Update With Windows

Same place. This is Vista, so it's C:\Users\skrall\.IntelliJ90\config\shelf Can you search your local hard drive for a directory named shelf? Or, if that doesn't work, search for *.patch

Illaudable answered 21/4, 2010 at 14:4 Comment(9)
NOPE - I use WIndows XP and IntelliJIdea80 folder in my user's folder doesn't have a config/shelf subfolder. I do have there code changes shelf so it must be stored somewhere, right?Guanabara
I loaded up my version of 8.1.3. It's in config/shelf for me.Illaudable
I don't have that path at all. Is there any way to check in IntelliJ what that path is defined as?Guanabara
Downloading IntelliJ for Windows. I'll let you know once it's done.Illaudable
Updated information for Windows. Basically the same, not sure what could be going on...Illaudable
I'm using CVS for my version control... I wonder if that makes a difference... I wouldn't think so, but I guess it's possibleIllaudable
On Mac OS X, these are in ~/Library/Preferences/IntelliJIdea90/shelfTarsier
In Intellij 14, they are stored within your project under $PROJECT_HOME/.idea/shelfVenturesome
I seems to have changed - I see some old shelves in my old idea folders: $HOME/.IntelliJIdea15/config/shelf/ (already v. 15 but probably from EAP times), but all new ones are in $PROJECT_HOME/.idea/shelf.Supersonics
C
33

Instead of giving the fish, here is how to fish:

  1. Find an action item: +Shift+A (on a Mac) or Ctrl +Shift+A (on Windows/Linux)
  2. Type "change shelve"enter image description here
  3. Check the location where it is being storedenter image description here
Cuprite answered 6/12, 2017 at 20:19 Comment(0)
I
28

For me it's $user.home/.IntelliJIdea90/config/shelf

I'm not sure if that changes on OSX or not. It seems like it might be different, but once you find the .IntelliJIdea90 directory, it's in /config/shelf.

Update for comment Here is my .IntelliJIdea80/config/shelf directory after shelving some changes in 8.1.3:

skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ ls
AnotherTestOfshelving.patch
skrall@skralldesktop:~/.IntelliJIdea80/config/shelf$ 

I'll startup my Windows VM and see if it's the same place on Windows.

Update With Windows

Same place. This is Vista, so it's C:\Users\skrall\.IntelliJ90\config\shelf Can you search your local hard drive for a directory named shelf? Or, if that doesn't work, search for *.patch

Illaudable answered 21/4, 2010 at 14:4 Comment(9)
NOPE - I use WIndows XP and IntelliJIdea80 folder in my user's folder doesn't have a config/shelf subfolder. I do have there code changes shelf so it must be stored somewhere, right?Guanabara
I loaded up my version of 8.1.3. It's in config/shelf for me.Illaudable
I don't have that path at all. Is there any way to check in IntelliJ what that path is defined as?Guanabara
Downloading IntelliJ for Windows. I'll let you know once it's done.Illaudable
Updated information for Windows. Basically the same, not sure what could be going on...Illaudable
I'm using CVS for my version control... I wonder if that makes a difference... I wouldn't think so, but I guess it's possibleIllaudable
On Mac OS X, these are in ~/Library/Preferences/IntelliJIdea90/shelfTarsier
In Intellij 14, they are stored within your project under $PROJECT_HOME/.idea/shelfVenturesome
I seems to have changed - I see some old shelves in my old idea folders: $HOME/.IntelliJIdea15/config/shelf/ (already v. 15 but probably from EAP times), but all new ones are in $PROJECT_HOME/.idea/shelf.Supersonics
C
21

IntelliJ IDEA 15 on linux, shelved changes seem to be stored as individual files in the project directory, under the .shelf directory.

Coppice answered 16/11, 2015 at 15:36 Comment(1)
Also applies to Intellij 16 on WindowsProtuberancy
E
19

Idea can also store shelved changes in <projectFolder>/.idea/shelf/ directory. Try to check this option.

Episodic answered 19/1, 2015 at 9:26 Comment(2)
This is perfect answer for windows machines!Stahl
True for Macos too!Puckett
G
7

For IntelliJ 10 on mac, for me its in ~/Library/Preferences/IntelliJIdea10/Shelf

Gyrostabilizer answered 25/3, 2011 at 4:10 Comment(1)
Now changed to ~/Library/Preferences/IdeaIC11/shelfLinebacker
M
3

IntelliJ IDEA 12 on Mac, stores them in ~/Library/Preferences/IntelliJIdea12/shelf/*.patch

Marylnmarylou answered 5/3, 2013 at 12:48 Comment(0)
F
1

IntelliJ IDEA 12 on Windows7, default location

%UserHome%\.IdeaIC12\config\shelf\*.patch

i.e. _IDE_config_folder_\shelf\*.patch

Note non default IDE config folder location can be looked up in _IDEA_HOME_\bin\idea.properties idea.config.path=${user.home}/.IdeaIC/config

France answered 13/9, 2013 at 15:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.