Skip to content

Instantly share code, notes, and snippets.

@boaglio
Last active April 16, 2024 09:23
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save boaglio/5c70707ea5061940496e345a788c9b63 to your computer and use it in GitHub Desktop.
Save boaglio/5c70707ea5061940496e345a788c9b63 to your computer and use it in GitHub Desktop.
Atalhos do IntelliJ - para quem veio do Eclipse

Atalhos do IntelliJ

Principais

Caiu no IntelliJ agora?

Aprenda só esses:

Tipo de Atalho IntelliJ IDEA
Pesquisar em Todos os Arquivos Ctrl + Shift + F
sugestões, criar classe, etc ALT + Enter
busca qqer coisa SHIFT + SHIFT
rename SHIFT - F6
arruma os imports CONTROL + ALT + O
executar programa Java SHIFT + F10

Lista completa (eu acho)

Tipo de Atalho Eclipse IntelliJ IDEA
Abrir Classe Ctrl + Shift + T Ctrl + N
Abrir Configurações Ctrl + Alt + S Ctrl + Alt + S
Ativar Code Completion Ctrl + Space Ctrl + Space
Buscar Ação Ctrl + 3 Ctrl + Shift + A
Comentar Código (bloco) Ctrl + Shift + / Ctrl + Shift + /
Comentar Código (linha) Ctrl + / Ctrl + /
Continuar F8 F9
Copiar Linhas para Cima/Baixo Alt + Shift + Up / Down Ctrl + Alt + Up / Down
Debug F11 Shift + F9
Excluir Linha Ctrl + D Ctrl + Y
Executar Última Ação Ctrl + Shift + L Ctrl + Shift + A
Formatar Código Ctrl + Shift + F Ctrl + Alt + L
Gerenciar Atalhos Ctrl + Shift + L Ctrl + Alt + S, K
Indentar Linhas para a Direita/Esquerda Tab / Shift + Tab Ctrl + Alt + Right / Left
Ir para Linha Ctrl + L Ctrl + G
Mover Linhas para Cima/Baixo Alt + Up / Down Arrow Ctrl + Shift + Up / Down
Mostrar/Esconder Console Alt + Shift + Q, C Alt + F12
Mostrar/Esconder Outline Ctrl + O Ctrl + F12
Mostrar/Esconder Package Explorer Alt + Shift + Q, P Alt + 1
Mostrar/Esconder Terminal Alt + Shift + Q, T Alt + F12
Mudar Perspectiva Ctrl + F8 Ctrl + F12
Navegar para Definição F3 Ctrl + B
Organizar Imports Ctrl + Shift + O Ctrl + Alt + O
Parar Ctrl + F2 Ctrl + F2
Pesquisar em Todos os Arquivos Ctrl + H Ctrl + Shift + F
Procurar Recurso (arquivo) Ctrl + Shift + R Ctrl + Shift + N
Procurar Referências Ctrl + Shift + G Ctrl + Alt + F7
Refatoração Rápida Ctrl + 1 Alt + Enter
Regerar Código Alt + Shift + S Ctrl + Alt + T
Renomear Alt + Shift + R Shift + F6
Selecionar Elemento Pai Ctrl + Shift + Up Arrow Ctrl + W
Selecionar Próxima Ocorrência Ctrl + Shift + P Ctrl + Alt + J
Debug - Step Into F5 F7
Debug - Step Out F7 Shift + F8
Debug - Step Over F6 F8

templates

Template Resultado
class public class MyClass {
// class body
}
for for (int i = 0; i < length; i++) {
// loop body
}
if if (condition) {
// if block
}
else else {
// else block
}
psvm public static void main(String[] args) {
// entry point
}
sout System.out.println();
soutm System.out.println("methodName");
soutp System.out.println("parameter = " + parameter);
soutv System.out.println("variable = " + variable);
iter for (var item : iterable) {
// loop body
}
itar for (int i = 0; i < array.length; i++) {
var element = array[i];
// loop body
}
nn var name = new Class();
nnf var name = new Class(f);
psf public static final
psfi public static final int
psfs public static final String
psvm public static void main(String[] args) {
// entry point
}
thrw throw new Exception();
thrws throw new Exception("message");
try try {
// try block
} catch (Exception e) {
// catch block
} finally {
// finally block
}

referências

https://www.jetbrains.com/help/idea/migrating-from-eclipse-to-intellij-idea.html#Shortcuts

https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf

@GiovaneRoxo
Copy link

tu é um deus meu caro amigo, muito obrigado

@KauaVilasBoas
Copy link

Estou mudando para o Intellij, ajudou demais esses atalhos!!

@zyphyxx
Copy link

zyphyxx commented Jul 16, 2023

salvou demais amigo

@wagmac
Copy link

wagmac commented Jul 28, 2023

estou tendo uma certa dificuldade em aprender , uma hora usar java, python, etc...mas obrigado pelos atalhos.

@vicitel
Copy link

vicitel commented Sep 15, 2023

caindo como uma luva. bão demais! 🧡

@bansalpratham14
Copy link

Vlw meu amigo , ajudou que só .

@luizlealdev
Copy link

Valeu Amigo

@Luciana-Rpdrigues
Copy link

Top demais. Muito obrigada!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment