相关推荐:java - JPA/Hibernate using shared id and cascade=all tries to save child before parent, causing foreign key violation

), with the id shared between the two and a foreign key relationship on the child table. My entities look like this:parent:public class LogItemEntity {... @OneToOne(cascade={CascadeType.ALL}, mappedBy = "logIte

up vote 2 down vote favorite 1

Annoyingly, in ALL Jetbrains IDEs, when you press ENTER to open a file in a new tab, the tab does not also become active.

For example when navigating within the project window using arrow keys, when i then open a file using ENTER, i have to additionally invoke the 'switcher' with ctrl + tab if i want to start moving about/typing within that file.

This is very very annoying as it is pretty standard in IDEs that when you open a file, it also becomes active.

If i double-click the file the opened tab does become active - but i don't want to use the mouse or trackpad, it's annoying and tiring. It seems a shame to have so many keyboard shortcuts only to make the user return to the mouse/trackpad just for that ...

IS THERE a shortcut key to do this? Any setting i can change? I have looked hard but haven't even found other people complaining about this - they must be there!

intellij-idea pycharm webstorm rubymine jetbrains share | improve this question asked Aug 16 '14 at 8:00 Robin Smith 116 7 add a comment  | 

1 Answer 1

active oldest votes up vote 1 down vote accepted

Finally found the answer: assign the keyboard shortcut ENTER to the command "Jump to source".

This can be declared in XML keymap file like this:

<action id="EditSource">
  <keyboard-shortcut first-keystroke="ENTER" />
</action>
share | improve this answer answered Aug 16 '14 at 9:20 Robin Smith 116 7 add a comment  | 

Your Answer

  draft saved draft discarded

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name Email

Post as a guest

Name Email discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged intellij-idea pycharm webstorm rubymine jetbrains or ask your own question.

相关推荐:java - Hibernate JPA IdentifierGenerationException: null id generated for class with @embeddedid

the entity is essentially a join table (a period) which combines two other entities (a timeslot and a day). Another entity (a lesson) then has a reference to this period entity, determining when it occurs.When I try to

快照源:http://my.oschina.net/u/2308739/blog/394076