MODULO 2.7

💻 IDE Integrations

Integre Claude Code com VS Code, JetBrains, Vim/Neovim e outros editores.

6
Topicos
30
Minutos
Interm.
Nivel
Pratico
Tipo
1

🔷 VS Code Extension

A extensao oficial Claude for VS Code oferece integracao completa com chat inline, code actions e comandos.

Instalacao

# Via marketplace
1. Abra VS Code
2. Extensions (Ctrl+Shift+X)
3. Busque "Claude"
4. Instale a extensao oficial da Anthropic

# Via command line
code --install-extension anthropic.claude

Features Principais

  • • Chat sidebar integrado
  • • Inline code suggestions
  • • Explain selection
  • • Generate tests

Atalhos Uteis

  • Ctrl+Shift+C Abrir chat
  • Ctrl+K Ctrl+E Explain code
  • Ctrl+K Ctrl+T Generate tests
2

🧠 JetBrains Plugin

Plugin para IDEs JetBrains: IntelliJ IDEA, PyCharm, WebStorm, GoLand e outros.

Instalacao

1. Settings → Plugins
2. Marketplace → Buscar "Claude"
3. Install → Restart IDE
4. Settings → Tools → Claude → Add API Key

IDEs Suportadas

IntelliJ IDEA PyCharm WebStorm GoLand PhpStorm RubyMine CLion Rider
3

📝 Vim/Neovim

Integracao via plugins Lua/Vimscript ou usando terminal embutido com Claude Code CLI.

Opcao 1: Terminal Split

" Abrir Claude Code em split vertical
:vsplit term://claude

" Ou em split horizontal
:split term://claude

" Keybinding sugerido (init.vim)
nnoremap <leader>cc :vsplit term://claude<CR>

Opcao 2: Plugin (Neovim)

-- lazy.nvim
{
  "anthropics/claude.nvim",
  config = function()
    require("claude").setup({
      api_key = vim.env.ANTHROPIC_API_KEY
    })
  end
}
4

🖥️ Terminal Multiplexers

Use Claude Code junto com tmux, screen ou Zellij para workflows avancados.

Layout tmux Recomendado

┌─────────────────────────────────────┐
│                                     │
│           Editor (vim)              │
│                                     │
├─────────────────┬───────────────────┤
│   Claude Code   │    Terminal       │
│                 │    (tests/git)    │
└─────────────────┴───────────────────┘

# Criar layout
tmux new-session -d -s dev
tmux split-window -h
tmux split-window -v -t 0
tmux send-keys -t 0 'vim' Enter
tmux send-keys -t 1 'claude' Enter
5

🔄 Sincronizacao de Contexto

Manter contexto sincronizado entre IDE e Claude Code CLI garante respostas mais precisas.

✓ Sincronizado Automaticamente

  • • Arquivos do projeto
  • • CLAUDE.md e .claude/
  • • Skills do projeto
  • • .claudeignore

⚠️ Sincronizar Manualmente

  • • Mudancas nao salvas na IDE
  • • Arquivos abertos recentemente
  • • Selecao de codigo atual
6

⌨️ Keybindings e Shortcuts

Configure atalhos para acelerar seu workflow com Claude.

Sugestoes de Keybindings

Acao VS Code Vim
Abrir Claude Ctrl+Shift+C <leader>cc
Explain selection Ctrl+K E <leader>ce
Fix error Ctrl+K F <leader>cf
Generate tests Ctrl+K T <leader>ct

📚 Resumo do Modulo

VS Code - Extensao oficial com chat inline e code actions
JetBrains - Plugin para IntelliJ, PyCharm, WebStorm e outros
Vim/Neovim - Terminal split ou plugins Lua
Multiplexers - tmux, screen, Zellij para layouts avancados

Proximo Modulo:

2.8 - Workflows Avancados