Within the Cloud9 IDE, if the focus is set to the Files sidebar (toggleable via ctrl + u), how does one refocus on the editor window to continue coding without reverting to using the mouse?
My current workaround is to hit ctrl + g for go to line {n}, but this adds unnecessary steps and can lead to the page scrolling to a completely different location than currently working on.
There is no shortcut for this.
But it is easy to add with user script
var editors = require("ext/editors/editors");
require("ext/commands/commands").addCommand({
name: "focusEditor",
exec:function() {
if (editors.currentEditor)
editors.currentEditor.focus();
},
bindKey: "ctrl-alt-w"
});
if you can think of a good shortcut for this suggest it on https://github.com/ajaxorg/cloud9/issues/2032#issuecomment-9427700 too
Related
I have to open each intellij instance for each application. And switch between these project are not so efficient. (there's no dependency between these project, so I can not add them into one project). I just wonder is there efficient way to switch between different projects in intellij.
OSX: Press CMD + `
Windows/Linux: Press cntr + `
https://www.jetbrains.com/help/idea/creating-and-managing-projects.html#switch-projects
if you have several opened projects: https://www.jetbrains.com/help/idea/opening-multiple-projects.html
you can use:
Next Project Window: Cntrl + Alt + {
or
Previous Project Window: Cntrl + Alt + }
Edit
jebrains update their Switching Between Open Projects:
https://www.jetbrains.com/help/pycharm/switching-between-projects.html
Next Project Window: Cntrl + Alt + ]
or
Previous Project Window: Cntrl + Alt + [
Set up a keymap shortcut to "Manage Projects...".
This brings up a window that you can type into to quickly search recent projects. It includes currently open projects as well as previously closed projects.
Use search everywhere command (shift + shift) and type Open Recent - you will be able to switch to one of your recent projects.
You could also configure any shortcut you want for this action.
To create shortcut, go to Preferences->Keymap and find Main menu->File->Open Recent.
Try this https://github.com/krasa/FrameSwitcher.
Switching intelliJ windows by searching project name.
If you're a MacOS user: As well as the Command+` and Command+Shift+` keyboard shortcuts which IntelliJ offers to toggle between IntelliJ windows, the OS-level Control+↓ keyboard shortcut is an excellent way to see and navigate between windows of the current app. The screenshot below shows the view which it offers. If you turn on App Exposé in your Trackpad preferences, you can also get to this view by swiping down with three fingers.
To switch between open projects, you can use the following commands of the Window menu:
Window | Next Project Window Ctrl+Alt+]
Window | Previous Project Window Ctrl+Alt+[
Is it possible to move a file (already opened) from one editor to another in split mode without using mouse and without using tabs (I have tabs disabled).
Example of what i want to accomplish. I enabled split mode (vertical) and opened file X in left editor. I want to move this file X to right editor because I already have file Y int left editor.
I found the command Move to opposite group which works fine only when tabs are enabled. When tabs are disabled (my case) call Move to opposite group force split mode to disappear.
Goto File->Settings
Then Keymap
Type in the searchbox "Move To Opposite Group"
Assign a shortcut
Also useful is "Goto Next Splitter" which allows you to switch between your Splitter.
But you'll hardly find a shortcut which is not already occupied.
I used Ctrl + NumPad+ for "Move To Opposite Group" and Ctrl + ArrowRight for "Goto Next Splitter"
You'll be notified that this shortcut is already in use, but you can ignore that. I had no conflicts so far
I agree with David Viehtauer and would add to his setup. This also won't work with tabs disabled, but has become essential to my workflow.
My prefered setup under Preferences > Keymap:
Move Right: ⌃ + ⌘ + ↓
Move To Opposite Group: ⌃ + ⌘ + ↑
Goto Next Splitter: ⌃ + ⌘ + →
Goto Previous Splitter: ⌃ + ⌘ + ←
Move Right will create a new splitter and send your current tab to it (if you have more than one tab on your current splitter). Once your file is in a new splitter you can go between your splitters with the Goto Next Splitter and Goto Previous Splitter shorcuts above. Now, using the Move To Opposite Group shortcut you can move your active tab to the preferred side.
Once you get familiar with this setup, you can quickly manage your tabs.
Action Open in opposite group is the closest solution I found.
Example of what i want to accomplish. I enabled split mode (vertical) and opened file X in left editor. I want to move this file X to right editor because I already have file Y int left editor.
After Open in opposite group action X will be opened in both editors. My workflow is "move" X to right editor and keep working in left editor.
My choice in this case was to use CTRL-SHIFT-a. I felt the command was not important enough to dedicate a shortcut to it.
As soon as the dialog appears, it is sufficient to type open opp and then you can already hit ENTER.
Here is another way to do this:
Put the cursor in the editor you want the class to display in
Bring up the search for class dialog (alt-o in my mac keymap, can't
remember if I customized this or not)
Search for your class
Select it then hit cmd-shift-enter, it will open in the editor your
cursor is in even if it is already open in another editor pane
I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.
What I'd like to do, is cycle through the autocomplete suggestions I get when hitting Ctrl + Space without using the arrow keys (↑, ↓).
The reason for this is that I prefer to keep my fingers on the home row (I'm using IntelliJ's Vim emulator additionally).
For example, how would I select sortThis instead of sorted without using the arrow keys or the mouse?
Peter Gromov's answer brought me to a satisfying solution:
In IntelliJ's settings, for Keymap → Editor Actions → Down I set a custom shortcut: Ctrl + J.
This way I can cycle forward through the suggestions.
Setting a shortcut for Down with Selection or Scroll Line Down in the IdeaVim-specific shortcuts did not affect the selection of autocomplete suggestions though.
The answer here: https://stackoverflow.com/a/9713306/2370679 led me to discover that Ctrl+n & Ctrl+p allow navigation of the auto-complete options without having to modify any settings
For macOS the IDE will give a hint that "^↑ and ^↓ will move caret up and down in the editor". These clearly do not work.
There are a few extra steps that are needed after following #matthias-braun's solution.
Here is the full list of step that I use:
Go to Preferences -> Keymap
Expand Editor Actions (not Plug-ins -> IdeaVim)
Select Down
Click the pencil icon or right-click
Select Add Keyboard Shortcut
Press the shortcut (I use ^N)*
Repeat for 3-6 for Up (I use ^P)
Click Ok**
Go to Preferences -> Other Settings -> Vim Emulation
In the drop-down under the Handler column for the row containing Down, select Vim***
Do the same thing for Up
* If you are warned about the key binding already existing then remove it. You can always reset back to the defaults by clicking the little cog icon up the very top to the right of the drop-down menu.
** The Vim Emulation doesn't seem to be populated correctly until you reopen the Preferences.
*** I'm not sure why the Handler should be Vim. This seems backwards to me but it works.
If you're able to scroll up/down in editor with some IdeaVIM-specific shortcuts, they should also work in the completion list.
In this particular case, I'd just type another "t" so that "sortThis" becomes selected (and the only) variant.
I have done the same thing with mapping the arrows but in a more logical way:
I mapped them that when I press 'Alt' 'J' is left, 'L' is right, 'I' is up, and 'k' is down. that way I can have easy access to the arrows while my fingers are on the home row and I don't need to move them nearly as much...
I'm posting it just so people who search it on google can have that idea.
Before, all I had to do it Alt + click to disable a breakpoint. Docs says it's still possible
but when I do Alt + click nothing happens. The only way I can disable it via menu (Run->Toggle Breakpoint Enabled).
Is something changed in newest IDEA?
Shift + Alt + click works for me for now. It seems like there is an inconsistency between the code and the docs. Maybe this is somehow related to the multiple selection support, the new feature of the IDEA 13.1, because it uses the same shortcut for adding/removing carets.
See the screenshot below to see what I mean. Basically, Intellij only highlights the box I draw with the cursor, but leaves the rest of the editor untouched. I have no idea why it happens, and the only way to resolve it for now is to close and reopen the editor. I have observed the same behavior on a Linux box and a MacBook, both when editing Java and PHP files, so I am not sure it's a bug.
The desired behaviour is standard row selection, i.e. highlight all rows which I drag the cursor over.
I think you have enabled 'column selection'.
Option can be toggled via these methods:
Menu Bar -> Edit -> Column selection mode
Document Body -> Right Click -> Column selection mode
Keyboard Shortcut -> ALT + SHIFT + INSERT
The column select mode is enabled, use Alt+Shift+Insert to enable or disable this mode.
Shift-command-8 to toggle it back and forth on OSX.