I am trying to use the keyboard shortcut Shift+Command+[Left|Right|Up|Down] to resize windows in intelliJ. But it doesn't work. Weirdly, in Window->Active Tool Window -> Resize I do see the option to apply the same options Stretch To [Left|Right|Up|Down] along with the corresponding shortcut key combination and that usually works for all windows except the editor window in which all the four options are shadowed even when the editor windows isn't stretched to it's full extent. Anyone has any idea on what is going on? I can do the resizing using the mouse.
It's because these shortcuts only work in tool windows and the editor is not a tool window. From Tool Windows:
Attached to the bottom and sides of the workspace are IntelliJ IDEA tool windows.
[...]
Within the editor, the shortcuts have different meaning:
ShiftCommand← – Move caret to line start with selection
ShiftCommand→ – Move caret to line end with selection
ShiftCommand↑ – Move statment up
ShiftCommand↓ – Move statment down
The editor doesn't have a specific size, it uses the available space. To make it larger or smaller, you have to resize the attached tool windows.
Related
is it possible to scroll down in Visual Studio 2022 just as if I was using scroll wheel? Say for example using some shortcut. I want to keep the cursor at the same line I am at, but move the code a little higher on the screen, without getting my hands off keyboard.
As was mentioned in the comments, the default keybinding for this are Ctrl+Up and Ctrl+Down. Keyboard shortcuts can also be reconfigured in the Tools -> Options -> Environment -> Keyboard settings.
The commands to configure are Edit.ScrollLineUp and Edit.ScrollLineDown. There are several other scroll related commands, but I'm not sure what all of them do (they may not be applicable in the text editor).
I like VIM a lot because it kind of doubles the power of my keyboard in a way. It's either in insert or motion or whatever they call it mode.
Navigating through source code, typing code, while being able to keep my hands in the touch type position is great.
But when a dialog box is opened (eg. the one using ctrl+F12), if I have to select something other than the first one in the list, I am forced to have to move my right hand to the cursor keys.
Is there a way so that I can use J and K or else something with ctrl or alt or something, so that I can select an item while keeping my hands in the touch typing position?
You can redefine shortcuts for the Up, Down, Left, Right actions in File | Settings | Keymap (the regular keymap that has nothing to do with IdeaVim). IdeaVim provides Vim emulation only for code editors like file editors, interactive language consoles, etc.
Edit: I guess you can't use j and k since characters typed in the structure window are reserved for searching. But you can use Ctrl+N and Ctrl+P which is the same as the navigation shortcuts for pop-up windows in Vim.
Edit 2: You can't use Ctrl+N and Ctrl+P as well due to this bug in IntelliJ.
Currently my IntelliJ shows amongst other things
How do i decide
What tool windows are shown
Where they are shown
Those things are called Tool Windows, and you can find them at View > Tool Windows.
To disable some of them, you can install the plugin ToolWindow Manager and disable one by one.
You can enable/disable all tool windows in Settings > Appearance > Show tool window bars
You can find more information about them here.
These are called "Tool Windows". If you right click on them it shows a menu that at the bottom has a "Hide" option. I notice some of them can't be hidden, but you can drag them to other places that are out of your view. For example, you can drag them from the bottom to the side. You can also drag to answer your second question.
I'm new to the XCode IDE, Mac and IOS programming. Means that I'll swap a lot between help and editor. However when using Cmd+Tab I'll not swap between help and IDE but between other open apps.
Does anyone know a short cut to switch between IDE and help?
OPT+Cmd+? will bring the help in XCode (the shortcut is mentioned if you go to the help section)
use 1. in combination with CMD+' to scroll through all open projects / windows within XCode.
You can have a look to this page: it refers all XCode shortcuts and gesture.
The default shortcut to open the Organizer is Cmd+Shift+2, which you can edit in the Preferences of Xcode if you want.
There is also a shortcut which will directly bring you to the Documentation tab: Cmd+Alt+?.
Additionally, you can set a shortcut to switch between the windows of the active app in System Preferences → Keyboard → Keyboard Shortcuts. The default is Cmd+< but I prefer Alt+Tab.
Command-Option-Shift-/ (a.k.a. Command-Option-?) will bring up the documentation window.
Also, you can cycle between windows within an application with Command-` (works in any application). You can use that to switch easily between a project window and other open windows, including the documentation window.
Command-Tab cycles between applications, not windows.
Note that the keyboard shortcut for a given menu command will be displayed in the menu along with the command (this is true for any application):
If you are on Mountain Lion (not sure if it works on earlier versions), you can also use the 4 finger scroll (Mission Control shortcut) if you prefer. With the Organizer (help) open, use 4 fingers and swipe upwards to reveal mission control. On top you'll see virtual desktops. Drag and drop your Organizer/help window onto the second desktop. Now you can flick right or left with 4 fingers on your trackpad to switch between code view and help. I know this sounds complicated but once you get used to it, it becomes second nature. But yeah Cmd + ~ is good too.
I have just installed IntelliJ 9.0.2 on a machine running 64-bit Ubuntu 10.04.
How do I get another window to put on my second screen?
I would like to have both an editor and some tool windows on both screens.
All 'windows' inside of IntelliJ other than the code editor tabs have a "Float" option which pops open an independent window which you can drag to anywhere on your screen. This will allow you to manage your IDEA windows however you like.
IntelliJ also allow you to open multiple projects at once. When opening a project with one already opened, you are prompted as to wether you would like it in your current window or a "New Instance". If you choose new instance, it will open up a completely new IntelliJ with the other project in it. This will work for you if you have many projects you work on at once.
IntelliJ 14 and onwards you can select the settings cog and tick floating mode to detach menus, or drag editor tabs off the main window to detach them
If you're running on OSX you'll need to make sure it's not treating the screens as separate spaces, otherwise they'll snap back onto the same window as the main editor when switching between windows.
To do this untick Displays have separate Spaces in the Mission Control System Preferences.
IntelliJ 10 will have draggable & dockable editor tabs. A very nice feature. It's already present in the early access versions.