Reputation: 369
Sometimes I need to look at one piece of code already written and write another piece in the same file. When the code is too long, for beauty or other reasons, I have to write for a while and then slide to the piece of code I want to see, and then slide it back to write again. Is there any good way to avoid this trouble?
thanks a lot
Upvotes: 5
Views: 1919
Reputation: 2728
You don't have to use a mouse to do it! Remember everything in IDEA is configurable so my keyboard shortcuts may not work for you though you can configure them in the keymap.
There are two ways which you can open multiple files in IDEA:
The first method would be to split the editor:
cmd shift A
on macsplit
and choose how you'd like to split The second method would be to open the file in a new flowable window:
shift f4
or search by action cmd shift A
on macopen source in new window
and hit enter
Upvotes: 5
Reputation: 26
If you use JetBrains IDEA, the form can be split vertically by right-clicking If you use Eclipse, you can ctrl + shift + [
Upvotes: 0
Reputation: 373
right click into tab name, and select split vertically or horizontally
if you are using git. then find "local changes". it will compare your current changes with the origin https://www.jetbrains.com/help/idea/viewing-changes-information.html#comparing_local_changes
Upvotes: 5
Reputation: 721
In Android Studio I see "Split Vertically/Horizontally" options when I right-click on the tab name which do exactly what you want. Since AS is derived from IDEA the functionality might be there too.
Upvotes: 1