To install IntelliJ IDEA CE in OS X run brew cask install intellij-idea-ce
(requires the almighty Homebrew installed first, and then tap caskroom/versions
).
Action | Command |
---|---|
Refactor | Ctrl + Shift + Alt + T |
Rename Refactor | Shift + F6 |
Find Action | Command + Shift + d |
Find Class | Ctrl + N |
Find File | Ctrl + Shift + N |
Find Text | Ctrl + F |
Replace Text | Ctrl + R |
Code Completion | Ctrl + Space |
Smart Completion | Ctrl + Shift + Space |
Live Templates | Ctrl + J |
Comment | Ctrl + / |
Format Code and Optimize Imports | Ctrl + Shift + Alt + L |
Plugins:
Preferences > Editor > File Types
)Buttercup song. IntelliJ IDEA Cheat Sheet. Jetbrains.com/idea @intellijidea blog.jetbrains.com/idea Windows & Linux keymap REMEMBER THESE SHORTCUTS Smart code completion Ctrl + Shift + Space. Download IntelliJ Cheat Sheet Java Language Cheat Sheets If you’re working with Java 8, Java 9, or one of these popular language features in Java, these cheat sheets can help you with syntax and basic concepts. Java 8 Cheat Sheet – This Java 8 cheat sheet includes sections on.
Tips:
push failure
go to Preferences > Version Control > Git
and in the SSH dropdown choose NativeIn the last six months I’ve really started to adopt VS Code for editing on a regular basis. In the process, I realized how many shortcuts I’ve come to rely on in my goto editors, Vim and Intellij. Hence, here I list useful features that I exist across all three editors, as a reference to help in learning a consistent set of commands.
Vim
B
/W
(uppercase) to move back/forward for ‘real’ words separated by whitespace. It moves to the start of wordsb
/w
(lowercase) works in the same way but treats words as being separated by any non alphanumeric character. Marginally more usefulE
/e
skips to the next end of word, as defined by whitespace/non-alphanumeric separatorsAlthough all these shortcuts allow for very precise movement, and complete control, in 90+ percent of cases this is more complex than it needs to be.
Intellij - Option + <- / ->
arrows
Taking notes on surface pro 6. Navigation skips between the start and end character of each word. Like you are alternately pressing w
and then e
in vim. Normally this can be sufficient for what you need to do but it is a bit slow
VSCode - Option + <- / ->
arrows
Very similar to how navigation works in Intellij, with a subtle but clever improvement. When you navigate forwards you move to the end of a word. When navigating backwards, you skip to the start of a word. This has the effect of making navigation quicker, as compared to intellij, but at the same time still making it easy to position your cursor at either the start or end of a word.
Vim
0
/$
- start / end of linegg
/G
- Move to first line/ last line. Cursor moves to the start of line in both casesVSCode
fn + <- / ->
- move to start / end of linefn + up / down
- move to top / bottom of visible pagecmd + <- / ->
- ALTERNATIVE for moving to start / end of linecmd + up / down
- move to first line + first character / last line + last character of fileIntellij
fn + <- / ->
- move to start or end of linefn + up / down
- move to top / bottom of visible pagecmd + <- / ->
- ALTERNATIVE for moving to start / end of lineVim - :57
- go to line 57. You can also type 34|
(number then pipe character) to move the cursor to the 34th character in a line (and this will be persisted as you move lines)
VSCode - ctrl + g
, then type line number - move to line number. If you type ‘:
Intellij - cmd + l
, then type line number to move to line. Moving to character works as in VSCode.
Vim
/searchString
- move to next match of the search stringn
/N
- move between next / previous matchesVS Code
Ctrl + f
- opens the search dialog. type searchString
then Enter
/ Shift + Enter
to move forwards / backwards through matches. THis also will find the next selection of selected text.Intellij
Cmd + f
- as VS CodeVim
:%s/search/replacement/gc
- inCremental string replacement starting from the beginning of the document (with sed).:.,$s/search/replacement/gc
- replace from the current line to the end of the file, rater than starting at the start of the file. You can customize this by changing . and $ to the start/finish line numbers you want:%s/search/replacement/g
- changes all matches without prompting for eachVSCode
Opt + Cmd + f
- brings up replace dialog. Enter
incrementally applies the replacement defined (only in the forwards direction). There is a button in the pop up box you can press to apply the replacement to all matchesIntellij Adobe photoshop cc 2015 download crack.
Cmd + r
= brings up replace dialog. This works roughly the same as in VS Code.Vim doesn’t have multicursor but does have more complicated alternatives to multicursor
VSCode:
Cmd + mouse click
- spawns additional cursor at the mouse clickCmd + up/down arrows
- spawns additional cursors on the next/previous linesCmd + d
spawns another cursor selecting the next instance of selected textCmd + shift + l
selects all instances of the selected textIntellij:
Opt + shift + mouse click
- spawns additional cursor at the mouse clickCtrl + g
spawns another cursor selecting the next instance of selected textCtrl + Cmd + g
selects all instances of the selected textVi
:help
- list of topics of of to use vim effectively:help <topic-ref>
- access the help for a particular topic:w + <prefix> tab
allows you to complete/select commands from a prefix. I find this to be more useful after setting :set wildmenu
so that all possible completions are visibleVSCode
F1
- search for actions (not only those mapped to keyboard shortcuts)Cmd + k
, followed by Cmd + r
- open the keymap referenceCmd + k
, followed by Cmd + s
- open all keyboard shortcuts to view or editIntellij
Cmd + Shift + A
- search for actions (not only those mapped to keyboard shortcuts)