Live data from Hacker News

My Favorite Shortcuts for JetBrains' IDEs

markusdosch.com

31–40 of 71 posts

Re: My Favorite Shortcuts for JetBrains' IDEs

#31
post #7

Earlier quoted context omitted.

FWIW: In the 2020.1 updates that have been rolled out in the last week the SSH support is now much better. But serious question though: what workflow do you have that remote code editing is necessary?

I find remote code editing to be useful when I don't have the necessary resources on my machine such as disk/memory/gpu and I am still prototyping a solution, which happens a lot in ML/DL. I agree that remote code editing is not strictly necessary since you can perform such task with sshfs or git push/pull workflows. On the other hand, having the remote environment in your local IDE quickens the development and you d…

I get that through remote interpreter and automatic upload features.

Re: My Favorite Shortcuts for JetBrains' IDEs

#32
post #7

While we talk about JetBrains, I think they really should push some priority on their remote development support. Take the VS Code Remote SSH extension as a good example of how it could work, which is extremely seamlessly, and it just works. E.g. even the embedded terminal provides a shell on the remote host, and if you e.g. open a file in there via `code somefile.txt`, it will open in your VS Code. It's basically th…

FWIW: In the 2020.1 updates that have been rolled out in the last week the SSH support is now much better. But serious question though: what workflow do you have that remote code editing is necessary?

For me the big one was using linux VM's on a windows host. If I want to work with Linux command line tools by far the easiest way is to have VS Code ssh'd into my VM and a few terminals open. I get the comfort of my normal daily driver and access to whatever command line tools are best suited to my current project.

Re: My Favorite Shortcuts for JetBrains' IDEs

#33

The best thing about this is the consistency across languages. Whether I am writing Java,C++,Rust, Go,Javascript, the shortcuts are the same with similar behaviour as much as possible. Shift F6 refactors the variable name. Cmd Alt M refactors a method from a chunk of code. Being able to use this muscle memory across languages is fantastic.

> Shift F6 refactors the variable name.

Funny you mention that. As a long-time Windows user, that is the first thing I remap when I set up any JetBrains IDE. F2 is the rename shortcut in File Explorer, so I set it to be the refactor variable name shortcut too.

Re: My Favorite Shortcuts for JetBrains' IDEs

#34

`Ctrl+W` is awesome, but after it has been ingrained in the fingers it's easy to close browser tabs by accident :D Another one (not mentioned) is "Dobbel tap and hold Ctrl" to add multiple carets using the arrow keys (might need to enable in settings (Under smart keys)). Another "smart keys" settings I recommend is "Surround selection on typing quote or brace" (not sure it's default or not)

> Ctrl+W is awesome, but after it has been ingrained in the fingers it's easy to close browser tabs by accident :D

This is why Ctrl+Shift+T is my favorite browser shortcut!

Re: My Favorite Shortcuts for JetBrains' IDEs

#35

Earlier quoted context omitted.

I find remote code editing to be useful when I don't have the necessary resources on my machine such as disk/memory/gpu and I am still prototyping a solution, which happens a lot in ML/DL. I agree that remote code editing is not strictly necessary since you can perform such task with sshfs or git push/pull workflows. On the other hand, having the remote environment in your local IDE quickens the development and you d…

I get that through remote interpreter and automatic upload features.

[deleted]

Re: My Favorite Shortcuts for JetBrains' IDEs

#36
post #14

Ctrl+J to select multiple occurrences for editing. That works for me on Linux. I think it’s different on Windows/Mac.

Ctrl + G is select multiple occurrences on Mac.

It's one of my favorites as well. It is really good when you need to quickly rename, reformat or tweak a handful of lines that isn't a viable refactor action.

Re: My Favorite Shortcuts for JetBrains' IDEs

#37

A couple of "problems" I've had with Jetbrains' (more specifically IntelliJ IDEA's) shortcuts are: - Not everybody uses a "standard" set of shortcuts (understandable); so whenever I need to do something on another's system, unless they're on "IntelliJ IDEA Classic" keymap, I'm clueless for a while. - Not wanting to re-learn the "default" (shipped with) "macOS" keymap in case they change it again because of clashes wi…

FYI you can export your shortcuts (and other settings): https://www.jetbrains.com/help/idea/sharing-your-ide-setting...

Re: My Favorite Shortcuts for JetBrains' IDEs

#38
post #7

While we talk about JetBrains, I think they really should push some priority on their remote development support. Take the VS Code Remote SSH extension as a good example of how it could work, which is extremely seamlessly, and it just works. E.g. even the embedded terminal provides a shell on the remote host, and if you e.g. open a file in there via `code somefile.txt`, it will open in your VS Code. It's basically th…

FWIW: In the 2020.1 updates that have been rolled out in the last week the SSH support is now much better. But serious question though: what workflow do you have that remote code editing is necessary?

I sometimes code on my Surface Go (with a Pentium Silver CPU) and remote in to my home desktop (with a ryzen 3900x). For one of my Rust projects, the Surface Go takes about 25 minutes for a clean build and 2-3 minutes for incremental build. The desktop does a clean build in 2 minutes and an incremental build in 10-20s.

Since it needs to do an incremental build to provide any of the intelligent tools for Rust, it means editing directly on the Surface Go degrades to a text editor experience, while doing the remote editing lets the IDE-like features work.

Re: My Favorite Shortcuts for JetBrains' IDEs

#40

Earlier quoted context omitted.

> despite me using a built-in macOS keyboard layout with no special customisation. I also use a built-in macOS keyboard layout with no special customisation, and I regularly use shortcuts with Cmd. Perhaps you might want to change your Keymap in IntelliJ(this can be done by Double Shift -> Type Keymap -> Select new value. Edit: For me, almost all the shortcuts detailed in this post work, just need to replace Ctrl wit…

I'm using the Dvorak Cmd-QWERTY layout in macOS. This changes the layout to QWERTY whilst the Cmd key is held so that keyboard shortcuts are mostly in the same physical place (because most are about easy hand movements rather than letter). JetBrains does not match this behaviour.

Huh, never realized that was a thing. Do the shortcuts in the menu show the QWERTY key or the Dvorak one? I'm curious how you learn the shortcuts if it still shows the QWERTY keys.
Post reply on HN