Problems with selecting text in Intellij Idea 14 - intellij-idea

friends.
I have installed Intellij-Idea 14 on my Linux Mint 17 distribution. All is great but I can't select text with Shift + arrays. The behavior of the Shift button is the same with the Ctrl button. Also the cursor is changed frequently from carret to "Insert type". Sometimes the cursor selects the text just with arrays without Shift-keypress.
I tried to change the keymap from Settings->Appearance and Behavior, but no one of them not resolved my problem. This problem is present not only in code editor. It is present in tool windows, consoles etc. In other applications from my OS there are no problem.

The problem was in "VIM emulator". It was activated by "Ctrl + Alt + V" keypress. I deactivated it from Tools -> Vim Emulator

Related

Krusader: using Alt+D as a shortcut

In Krusader, I want to use Alt-D as a shortcut to focus the location bar. This works fine for browsers and Dolphin. When I set the shortcut for "Go To Location Bar" to "Alt-D", setting the shortcut has no errors. When I try to use the shortcut, I get an error popup saying that the key sequence 'Alt+D' is ambiguous.
Note that I have to hit 'Alt+D' twice to get the error. This makes me think that I'm colliding with the 'Alt+D' consumed by Plasma.
What can I do to get Krusader to do what Dolphin, Firefox, and Chromium do?
It is not possible by now. This is known bug of Krusader. In Ubuntu 20.04 the same problem is reproducing.
In Krusader keys combination Alt + letter or digit is used to navigate through UI (menu items, buttons, tabs, navigation path items). So Alt + D is pointing to something in it.
There are many bug reports with the similar problem on Krusader bugtracker. May be one day this will be fixed. Links to the bugs:
Ambiguous shortcut (Alt + R)
cant use shortcuts (Alt+E) which conflict mnemonics
Alt+letter keyboard shortcuts conflict with accelerators
alt+letter shortcuts are overriden by main menu shortcuts
Alt-shortcuts dont work with secondary layout

Rstudio keyboard shortcut to copy from console to source?

After years of using this site, I'm finally posting my first question!
In RStudio, I often develop a line of code in the console, and then once satisfied, I copy and paste it into my source code. Since I do this many times a day, I thought it would be great if there were a keyboard shortcut.
I don't see anything for this listed in RStudio's keyboard shortcuts (click on Tools -> Keyboard Shortcuts Help). The only way I've figured out to do this via the keyboard is the following:
Type command at console (don't hit Enter)
Ctrl + U (copy line up to cursor)
Ctrl + 1 (switch to source)
Ctrl + Y (paste line)
Ctrl + 2 (switch back to console)
Question: As you can see, this is not much of a shortcut. Any other hacks? Or better yet, is there a way to define RStudio keyboard shortcuts in addition to the ones that are already defined?
Environment:
RStudio version 1.0.44
R version 3.3.2
Mac OSX 10.11.6

How can I select next occurrence in IDEA editors

Ctrl+D performs the find_under_expand command in sublime. This basically searched for the next occurrence of the already selected text and selected it, so when I edit, it's edited on both places at the same time. I'm currently trying to move to IDEA editors (such as WebStorm, PHPStorm, PyCharm, etc) but didn't find something like this command in this IDE yet.
I believe they recently added this to the latest IntelliJ release, and I would assume PhpStorm as well. As the bindings are system specific, take a look at http://blog.jetbrains.com/phpstorm/2014/03/working-with-multiple-selection-in-phpstorm-8-eap/. Looks like that version is available through EAP, so don't know when they will release it for general consumption (or if they have already).
DEFAULT SHORTCUTS
Alt+J on Windows and Linux, Ctrl+G on Mac OS X
On Mac OS X, you can select the next occurrence with Ctrl+G
In the settings window, search for ”Add Selection for Next Occurence” (PhpStorm 8.0.1)
On mac the default is ctrl+G, but you can change it to ctrl+D (or cmd+D on mac)
Currently its mapped with
for selection, Alt + J
for unselection, Alt + Shift + J
but if you're familiar with sublime shortcuts like Ctrl + D
Jetbrains give you an option to change settings,
Settings -> Keymap -> Editor Actions
search for multiple selection, find Alt + J
then right click -> select change keyboard shortcuts
set shortcuts you want as like sublime, Ctrl + D
Here is the Docs
On Windows
Alt+j - Multiple Select
Alt+Shift+j - Unselect Multiple Select
I think what you want to do is refactor it at all the place in the file at once.
So in MAC machine the handy shortcut for it is shift + F6 (you may have have to use fn key before F6).
Click on the text you want to change and then press shift + F6. It will highlight the text and then your change at all the place in the file. :)
It will do the job same as sublime ctrl + D
PhpStorm has a "Select Word at Caret", Ctl+W and Ctl+Shift+W respectively (you can check your keys by searching under Preferences > Keymap).
Detail here:
http://www.jetbrains.com/phpstorm/webhelp/selecting-text-in-the-editor.html#d617165e275
Not entirely sure if it's the same as you mentioned, but it's mighty handy!

Using Sublime Text 2 key bindings in PyCharm

I would like to use the Sublime Text 2 key bindings in Pycharm. I know how to edit it one by one. Is there a way to override the entire keymap in one shot?
Something like
export the key bindings from sublime text 2
convert it into Pycharm's format
import it into Pycharm
Pycharm has some pre-configured keymaps. If there's a text / XML / JSON file where these maps are stored, I can try to convert it myself.
PyCharm now has Sublime Text keymap inbuilt as an alternative to Default Keymap.
Go to Setting -> Keymap and select Sublime Text from Keymap dropdown.
Hope that helps.
After poking around, I feel there's no easy way to do this.
If you change the default bindings, PyCharm creates a file in user space that shows the format of keymap. Theoretically, one could override all the fields in this file. But the problem is, there's no standard way of describing the action performed by a shortcut. Someone will have to do it manually, for each macro, to establish a correspondence between the actions performed by PyCharm & Sublime Text.
There is an IntelliJ request for this in their Youtrack tracker: IDEA-111333 Provide Sublime Text keymap.
From that thread, I found a repository for another remapping project. The keybinding file that imitates most of Sublime text can be found at in the directory PHPStorm-SpacePeacock/win_linux-keymaps-only/keymaps/Default for GNOME copy.xml. From the README:
The key mapping has been updated to better fit Sublime Text
conventions. Because I didn't think that ctrl + shift + alt + t is a
reasonable key combination for something as frequently used as
Refactor This.
Additionally, "search everywhere" HAD to be changed because
double-tapping left-shift is a two stroke trigger. This is a problem
because as you're working the IDE will be busy with analyzing,
indexing, and all of the things that IDEs do. If it's busy when you
try to hit the first left-shift, then the second left-shift won't pop
up the window. As far as user interfaces go, you should never have any
lack of confidence that an action will trigger the appropriate
response. Once you have that, you have to visually check each
operation which is slow and creates cognitive overhead. Consequently,
this was changed to ctrl + p (also to match Sublime Text) which
completely removes this problem.
ctrl + p search everywhere
ctrl + r search methods in current file
ctrl + alt + p change projects
ctrl + shift + enter complete current statement
ctrl + alt + enter refactor this
alt + enter show intended actions (intentions are one of my favorite
part JetBrains software)
ctrl + n new thing dialog
ctrl + shift + f format code
ctrl + d select word at cursor, or if a word is selected the select
the next occurrence of the word (multiple-cursors)
ctrl + t run tests
ctrl + alt + h show local history
ctrl + alt + r git conflict merge tool
(Less popular) keymaps that can be used with JetBrains Rider but not included in the installation package.
https://github.com/JetBrains/rider-non-bundled-keymaps
Intalling keymaps
In releases, get the sublime-text-keymap.jar file for the desired keymap.
In your IDE, choose File | Import Settings... from the menu and select the sublime-text-keymap.jar file.

keyboard shortcut to switch between project frames in Intellij IDEA

Is there a keyboard shortcut to switch between project frames in intellij?
I have two projects open and the only way I've found to select the non-active project is to drag the top window/frame out of the way and then click on it.
On osx, I use the standard keystroke (both Command+~ or Command+` seem to work) for switching windows within an application.
On windows, I use alt+tab.
Annoyingly, you can use "Cmd + `" to switch through your windows but it doesn't loop back to the first window when you reach the end. You have to use "Shift + Cmd + `" to go in the reverse direction.
for Mac OS X, try:
option + command + [
option + command + ]
If you have multiple projects just switching between them may be too tedious.
In such case it's better to open Window menu using ALT+W and choose project from list.
To make quick search working for project names you need to open Window menu as popup. To do it just assign keyboard shortcut for it:
I chose CTRL+ALT+W as my shortcut to open the following window with project quick search:
for Windows, try:
Crtl + Alt + [
Ctrl + Alt + ]
I've stumbled upon an intellij-native popup for switching projects. To find it and set a key mapping:
cmd+shift+a (if macosx; shift+shift might work cross-platform) for the find-command popup menu
type/search for the "open project windows" command
option+enter (or equiv) to assign a key mapping
This Project Windows popup lets you type to filter and select by project name.
Go to Intellij Preferences.
Under Keymap find Activate Next Window.
Right click on it and choose Add Keyboard Shortcut.
Press cmd + ` and click OK.
Click OK to close Preference window.
Map key to Activate Next Window
2013 answer for people who want an "up to date" answer:
If you maximize (full screen) all your project windows and keep them grouped together in "mission control" then I find the three finger swipe works really well to move between projects.
Ctrl + Shift + [
Ctrl + Shift + ]
Does it for me. On both Intellij IDEA and PyCharm.
On Windows the following should work:
Ctrl + tab
There is no such shortcut by default, but it should be possible to implement this feature as a plug-in.
In ubuntu 18.10, you can use the below key combination for toggling betwee two open instances -
alt + `
In ubuntu, switching between multiple windows inside an IntelliJ,
use alt + ~
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.
For Mac,
Command + Shift + [ or ]
works in full screen mode.
fast forward to 2022 and you get...
I'm working on a Mac OS X. Right click on IntelliJ dock icon shows all your open projects.
I was struggling with the same issue. This is how I dealt with it.
If you have set up your mac for expose ( by default F10 for application windows), then you could use that keyboard shortcut. This is the quickest way I know and since I usually have around 5 project windows I use this fairly frequently.
On MAC CMD + ` will work.
Ensure that you haven't maximised windows.
Have been searching solution for macOS for long time and found this great plugin finally https://github.com/krasa/FrameSwitcher.
Switching intelliJ windows by searching project name including recent opened ones.
I am just put a new update her for MAC OS on version (20220.1.4)
it has new: command + option + stands for the next and command + option + shift + stands for back
I am using Mac Big Sur 11.2.3 plus IntelliJ 2019. to switch among windows, I use the following 3 keys.
⌥ ⌘ `
If you have opened multiple projects and want to switch between them, then you can use:
command `
that is, command and tilde (you can get it just above tab button).
This is for mac os.