I've lost my custom keymap after last upgrade

Answered

Hi,

This is happening during last upgrades, but not always and not in every machine I own. When I upgrade phpStorm, I lost my custom keymap configuration. For example, I like cmd+r for the File Structure, and it's gone. It never happened with version 2016, but it happens most of the time with 2017.

Obviously, it's very annoying having to set everything up again and again. If I import my previous exported settings, no keymap is imported. It's weird.

I'm using mac 10.12.4.

I would really appreciate any help here.

Thanks!

21 comments
Comment actions Permalink

What version did you upgrade from?
Generally, during settings import a certain file should have been copied: config/keymaps/#keymap-name#.xml
Could you please check if you have this file in the previous version settings and in the current file?

https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

0
Comment actions Permalink

Hi @eugene,

Last time I upgraded from 2017.1 to 2017.1.2.

In /Users/<user>/Library/Preferences/PhpStorm2017.1/keymaps i have a Default copy.xml (i guess thats the path you talked about, but the file you said it is not there).

I don't have any PhpStorm2017.1.x or something like that, so I'm not sure whats the "previous" and the "current" directory.

1
Comment actions Permalink

Are you using Setting Repository?

A minor update (2017.1 > 2017.1.2) shouldn't interact with your saved configs. What other hotkeys were changed?

1
Comment actions Permalink

Hi Dimitry,

Yes, I'm using a server repository.

The other hotkeys were (i'm using a spanish keyboard) cmd+- toggle comments and cmd+alt+ right / left arrow keys to navigate between tabs.

Thanks

0
Comment actions Permalink

Hi,

Some changes were introduced as a part of https://youtrack.jetbrains.com/issue/IDEA-165950 and it's still in progress.

It's necessary to remap your shortcuts.

As for Settings Repository - do you still have your custom keymap in the repository? Did you import your settings from there after the update?

1
Comment actions Permalink

Hi,

 

Yes I tried to import from my repository and from a file I had exported before the update.

I have created a custom keymap file and will keep track of it, in case this happen again.

Thanks Vladimir

0
Comment actions Permalink

Guys, this happened again. I upgraded to latest last Friday and lost all my customized shortcuts.

I'm pretty sure that's because I'm using a spanish keyboard layout, but this is very annoying...

I have created a new keymap. How can I create a manual backup of that keymap in case this happens again?

0
Comment actions Permalink

You can copy config/keymaps/#keymap-name#.xml somewhere, and copy it back whenever it happens again. Unless it's a keystroke mapping issue, of course.

0
Comment actions Permalink

Something weird is happening. I named my custom keymap "chux". Im in the directory (i'm using mac):

/Users/myusername/Library/Preferences/PhpStorm2017.3/keymaps

I only have one file, Default copy.xml

How can I know what's my current phpstorm directory?

And most important, how can avoid this from happening in the future?

Thanks!

0
Comment actions Permalink

Are you using Settings Repository plugin? If you do - disable the plugin and check if the keymap scheme is available again.

0
Comment actions Permalink

Yes, I'm using it. the file was in the repository.

I can't disable the plugin as I work with three different computers in three different locations, and it's painful not being able to have all the settings in sync.

0
Comment actions Permalink

How can I know what’s my current phpstorm directory?

Sorry, I forgot that when you use Settings Repository it puts the config files in a different directory, it’d be:
~/Library/Preferences/PhpStorm2017.3/settingsRepository/repository/keymaps

And most important, how can avoid this from happening in the future?

Right now, it’s hard to say how exactly SR causes this. Could you please checkout the SR repository somewhere else and check if your custom keymaps are presented there?

0
Comment actions Permalink

Hi Eugene,

There isn't any keymap subdirectory in the path you said.

In my Settings Repository, I have the Keymap subfolder with my shortcuts.

Yesterday, I synched my home's computer with my repository and my custom shortcuts are working fine.

Thanks

0
Comment actions Permalink

Today I got an update, and after the update, everything is reseted again...

 

0
Comment actions Permalink

Do you have the file with your custom hotkeys at PhpStorm2017.3/settingsRepository ?

0
Comment actions Permalink

hey dimitry,

Sorry for my late answer. Yes I do and I did.

I upgraded from home to 2018, and my custom keymaps are lost again. This is super frustrating. I'm starting to think that copying the settings directory to dropbox would be a solution (or patch). Or maybe try to reinstall everything from scratch.

No one else is experimenting the same issue?

Thanks

0
Comment actions Permalink

Yesterday I received an update for the plugin "Material Theme UI". Today, everything went wrong again. 

I have also lost my live templates.

I have disabled the Material Theme UI and restored the keymaps and live templates again. Maybe the plugin was the cause of the problem. I will keep an eye on future updates to see if it's working fine without the plugin.

Is it possible that a visual theme was the cause of my problems?

1
Comment actions Permalink

Sorry for missing a reply. Not sure if this plugin is a cause of the issue. It looks to me that the issue is caused by settingsRepository  plugin

0
Comment actions Permalink

Hi Dimitry,

No problem,

What would be the solution? I'm willing to test anything. It is very annoying and always happens when I have more work to do.
Any tips to syncronize the settings without the plugin repository?

Thanks

0
Comment actions Permalink

Hi Jesus,

Please try "IDE Settings Sync" plugin. Disable "Settings Repository" plugin and then follow the instructions to get this working: https://www.jetbrains.com/help/phpstorm/sharing-your-ide-settings.html#IDE_settings_sync 

0
Comment actions Permalink

Fuck you webstorm now my shortcuts are rambled... FUCK IT!

0

Please sign in to leave a comment.