Intellij windows-like bindings on mac? - intellij-idea

Intellij IDEA for MAC allows you to change keymap to Eclipse (Mac) or Eclipse (windows). The Windows Eclipse version has windows style editor bindings like control-right moves cursor right one word instead of switching to next editor tab. How do we load an option for the Windows Intellij (instead of Windows Eclipse) on our Mac, so that cursor movement keys can be more windows-like?

If you mean changing the corresponding shortcuts in the "IntelliJ IDEA Classic" keymap, please try the following:
Disable Ctrl + Left / Right shortcuts in OS Preferences | Keyboard | Shortcuts (e.g. on Mac OS 11.5.2 they are dedicated for moving between spaces in Mission control).
Open the IDE Preferences | Keymap, choose the IntelliJ IDEA Classic.
Assign other keys to the Select Next / Previous Tab actions in Preferences | Keymap | Main Menu | Window | Editor tabs.
Assign Ctrl + Left / Right shortcuts to Preferences | Keymap | Editor Actions | Move Caret to Previous / Next Word.

Related

How to open projects as tabs on macOS in Goland IDE

can not open projects in tabs
Can anyone please let me know how to open multiple projects as tabs in Goland
wanted tabs
Set Prefer tabs in macOS Preferences | General to Always or In full-screen.
Open a new project in the IDE, select New Window in Open Project pop-up or configure it via Preferences | Appearance & Behavior | System Settings | Open project in.
workaround ::
Launch GoLand
Open Project1: auto full screen
Open Project2: auto full screen in another window
Quit GoLand at dock
Relaunch GoLand: Project1&2 are auto open and group as tabs in same window
i found new hidden option to merge all opend window in tabs
first follow this answer from s0xzwasd
s0xzwasd
Set Prefer tabs in macOS Preferences | General to Always or In
full-screen.
Open a new project in the IDE, select New Window in Open
Project pop-up or configure it via Preferences | Appearance & Behavior
| System Settings | Open project in.
and
Window
choose Merge all project windows
preview image

How to give preference to user defined keymaps in Intellij idea over default

I have been using VSCode for Java development for past 1 year. But now, I want to use Intellij for my work. In VSCode, I changed some shortcuts such as endOfLine to ALT+F, startOfLine to ALT+D and they are working fine. But In Intellij, I changed these commands exactly same as in my VSCode but instead of working, these shortcuts are triggering options in the top bar like File, Edit, View etc.
Is there any way by which I can give preference to my custom keymaps over default keymaps in Intellij. Please note that I want to use only ALT key with my custom keymaps.
Disable these options:
Settings (Preferences on macOS) | Appearance & Behavior | Appearance | Enable mnemonics in menu
Settings (Preferences on macOS) | Appearance & Behavior | Appearance | Enable mnemonics in controls
Alt + letter shortcuts are commonly used for mnemonics.

IntelliJ IDEA: keyboard shortcut ALT+INSERT for Generate

Intellij: keyboard shortcut ALT+INSERT for generate ...
For HP laptop, press ALT + INS(print sc), nothing happens.
The key is marked as ins/print sc. There is no other key especially for INSERT. Is there a workaround?
Add some other keyboard shortcut at File | Settings | Keymap for the Generate action:

How to close unmodified tabs when opening a new one?

There is a feature on Sublime and VSCode that consists on: When you open a file in a new tab but you don't modify it, that tab closes when you open a new one. If you don't want that tab to close, then you hit command+s so it remains open.
On PhpStorm and WebStorm, when you open a new file even if you don't modify it, it remains open when you open a new file.
Any ideas on how to get that functionality on PhpStorm and WebStorm?
The feature's name is "preview tab"
Ctrl + Alt + s | Editor | General | Editor Tabs | Enable preview tab
There is no such feature... Please vote for IDEA-124569 to be notified on any progress with this request.
You can use View/Quick Definition (Alt+space or Cmd+Y in default OSX keymap) to preview the file without opening it in editor.
You can also try playing with editor tabs preferences (Preferences | Editor | General | Editor Tabs), enable Close non-modified files first, for example.

Shortcut to Close Intellij File Tab

I love intellij's file tab but I can't seem to find a way to shortcut closing a tab similar to the behavior of ctrl + w in chrome. I can't find the option in the keymap editor. Am I missing something or is this not implemented?
I found this page but it doesn't include the action name. I would use ctrl + f4 but my window manager has that reserved and I would rather change it.
Open Settings by hitting Ctrl+Alt+S
Click: Keymap
Search for: Close
Under Main menu > Window > Editor Tabs, find Close.
Right-click and click Remove Ctrl+F4.
Right click and click Add Keyboard Shortcut
Add your new custom Keyboard Shortcut.
IntelliJ will tell you if the shortcut clashes with another shortcut performing a different action.
Alternatively, open/edit your Linux Window Manager Settings and remove the Ctrl+F4 mapping to allow other programs like IntelliJ to make use of it.
For PC-based keyboards, the shortcut to close tabs is CTRL + F4,
not to be confused with ALT+F4.
Current tab can be closed with:
Ctrl + F4
Works on Intellij Ultimate 2016.3
On mac OS, Intellij 2018.3 version, 'Command + W' does close the file tab.
As we can see in the image in this discussion:
Go in Settings >> Keymap >> Main menu >> Other >> [Close Active Editor] and change to Ctrl+W.
I'm on version 2020.1 and this has changed to Ctrl+4