Is there any shortcut for distraction-free mode in IntelliJ? Or can I create one somehow? I don't want to go to view tab every time.
There is none assigned by default, but you can assign one yourself.
Go to Settings > Keymap and type distraction in the filter field (or expand the Main menu > View > Toggle Distraction Free mode tree). Right click the item and select Add Keyboard Shortcut.
Ctrl + ~ + 4 + 2
Ctrl + ~ + 4 allows you to exit/enter presentation mode, distraction mode, full screen
If you're using the default Mac shortcuts, you can use Ctrl+` 4 2.
Explanation:
Press and hold Ctrl, press `, release all; this brings up the Switch... menu. Press and release 4; this enters the View Mode menu. Press and release 2; this toggles Enter Distraction Free Mode/Exit Distraction Free Mode.
As I use both Distraction Free and Full Screen mode very often, I've made the following shortcuts consisting of two keystrokes:
Ctrl+Shift+S D for distraction free mode
Ctrl+Shift+S F for full screen mode
You can do this in Settings > KeyMap (search for "distraction").
To add a shortcut:
go to preferences
go to keymap and search for the function that you want
assign the shortcut that you want(mine is z followed by n)
Related
What is the keyboard shortcut for navigating between different iterm2-windows?
P.S. not but a window Cmd+N
There is defined shortcut for navigation between windows which is Opt + Cmd + Number where Number is a number of window. (e.g. the first created window gets 1, second 2 and etc.)
You can see/change it in:
Preferences > Keys > Navigation Shortcuts > Shortcut to activate a window
I hope it helps someone
I can't find what is the shortcut for toggling of full screen and distraction free viewing modes in IntelliJ IDEA. My questions are:
Do those shortcuts even exist?
Can they be defined as some custom shortcuts?
Is there a way to create macros? (by pressing one button toggle both modes)
Is there a plugin of some sort that does this?
Thank you!
i would like to add to the existing answer, that there is indeed an indirect keyboard shortcut to change view mode.
ctrl+` > 4 > 1 (for presentation mode)
ctrl+` > 4 > 2 (for distraction free mode)
tested on intellij idea v18.1.4 ultimate edition
The shortcut does not exist by the default configuration (as seen here, and in this YouTube video that showcases its use).
You can assign it (distraction free example) yourself by going to File > Settings > Keymap and type distract in the filter field (or expand the Main menu > View > Toggle Distraction Free mode tree). Right click the item and select Add Keyboard Shortcut (or read this manual on how to assign shortcuts in IntelliJ).
In IntelliJ IDEA Ultimate 2019.2, the keyboard shortcuts are
ctrl + ` > 5 > 1 (for presentation mode)
ctrl + ` > 5 > 2 (for distraction free mode)
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
Is it possible to change the quick access shortcut numbers for a tool window?
i.e. the numbers next to a tool window name, used by the keyboard shortcut to toggle the window, talked about here
Yep. They are listed in Keymap. MainMenu -> View -> ToolWindows.
P.S.: Idea has a nice Find by shortcut function in Keymap settings page, I used it, to answer your question.
In Android Studio, you can change the Keymap this way:
Preferences -> Keymap
Then open Tool Windows. You may need to scroll down to see all the options.
Right-click on the element you want to assign a new key-stroke. Select Add Keyboard Shortcut. Make sure that the rectangle with a plus in it is selected (use your mouse) and press the key-stroke that you want for this item.
Android Studio will warn you if that key-stroke is already assigned. Click OK to reassign that key-stroke to the item. It'll warn you one more time that you will need to remove the previous assignment for that key-stroke. Click Remove to proceed. You should see the updated keystroke in the right-most column.
What is the cloud9 keyboard shortcut to move between the editor tab (#1) and the terminal console (#2)?
I am aware that I can open a terminal tab and switch to it using the keyboard, but I want to see both the editor and terminal in one view.
It is ALT + S on the current version of Cloud9
To make certain keyboard shortcut work on c9.io in Chrome, which would otherwise do something else like close tab or reload page, click the menu button of Chrome > More Tools > Create Application Shortcuts....
Now the IDE is an actual program and all the default browser shortcuts are disabled. Ctrl + W (Close tab) and Ctrl + Shift + Q (Close Chrome) and F5 (Refresh) and the likes can now be used as keyboard shortcuts :)
To add on #Kronenbourg's exact answer (which IMHO should be accepted) - as of May 2015:
Shift + Esc / Esc - Goto workspace (files tree) / Exit workspace (to the last place, Editor/Terminal)
ALT + S - switch between code and terminal
In conjunction with CMD + { / CMD + }, which navigate right/left in current context (Editor, terminal) tabs, you should be able to reach anywhere with the keyboard.
Also useful in the context is CMD + O to open file.
HTH
It's Shift+ESC on open source, but unfortunately this doesn't work on c9.io.
I accidentally found out that ctrl+~ works to switch between terminal and editing window and then back. Maybe it's not the most convenient shortcut but it works.
Alt+s
This shortcut is listed in the top menu, under:
Window > Navigation