goe
goe

Reputation: 5415

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

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?

Upvotes: 48

Views: 27069

Answers (7)

Ricardo
Ricardo

Reputation: 4308

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

Upvotes: 37

Greg Chabala
Greg Chabala

Reputation: 1137

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

Upvotes: 21

Jan Zdrha
Jan Zdrha

Reputation: 383

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

Upvotes: 19

smile-on
smile-on

Reputation: 2173

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

Upvotes: 1

Alex Giotis
Alex Giotis

Reputation: 611

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

Upvotes: 3

Evan A Schnabel
Evan A Schnabel

Reputation: 71

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

Upvotes: 7

Steve K
Steve K

Reputation: 19586

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

Upvotes: 28

Related Questions