Live data from Hacker News

My Favorite Shortcuts for JetBrains' IDEs

markusdosch.com

1–10 of 71 posts

Re: My Favorite Shortcuts for JetBrains' IDEs

#4
`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)

Re: My Favorite Shortcuts for JetBrains' IDEs

#5
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 this feature request: https://youtrack.jetbrains.com/issue/IDEA-226455

Maybe they just need a few more votes on it. Or some more popularity.

Or is it just me and most people don't really need this? I'm still not really sure about the optimal remote work setup. Other people might just use Mosh + Tmux + Vim... I heard that Google has some very nice internal web IDE. If there would be a web IDE as powerful as PyCharm and the other JetBrain IDEs, that would also be a nice option.

Re: My Favorite Shortcuts for JetBrains' IDEs

#6
Ctrl-alt-L (cmd-alt-L) is my all-time favorite. It reformats the code consistently. It's the first thing I do when I start work on a new codebase, and the last thing I do before a commit.

No need for endless discussions on which style is best, as the IDE allows you to set the preferences on a per-project basis. It can also read editor config dotfiles so you can use code formatting consistently throughout a team.

Re: My Favorite Shortcuts for JetBrains' IDEs

#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?

Re: My Favorite Shortcuts for JetBrains' IDEs

#9
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?

Many companies build/execute code on cloud desktops.

Re: My Favorite Shortcuts for JetBrains' IDEs

#10
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 do research on speech recognition and machine learning, i.e. I run lots of TF code, on lots of big data, and it runs for a long time (days, weeks). All the data, user files, everything in our lab is accessible via NFS, and every node in the cluster has the same FS. From the outside, I only have SSH access.

I want to work on code which runs there in the cluster.

I could have a local Git checkout of the code (partly). But sometimes it's a lot of trial and error, and it would be quite annoying to keep extra care that my local Git checkout gets synchronized with the copy in the cluster. Sometimes it might also have other files as dependencies which are simply only there in the cluster - or it would be extremely complicated to replicated all the same locally, and keep it all in sync. Even if PyCharm could help on the syncing part, it would still not be perfect, and would be annoying.

VS Code Remote SSH is basically perfect and exactly like I want it. The only problem is that I still prefer PyCharm.

Post reply on HN