Claude code

From Logic Wiki
Revision as of 10:28, 14 April 2026 by AliIybar (Talk | contribs)

Jump to: navigation, search


Course : Mosh Claude Code Course

Alternatives of Claude Code : CoPilot, Cursor, Windsurf

Installation

Choose the right installation for the OS from https://code.claude.com/docs

Using Claude Code

Upgrade to pro plan to use it in VS Code

Some commands

Open VS and open terminal inside of VS.

claude
/login 

to remember last session

claude --resume 
/terminal-setup

it installs Shift+enter to write multi line commands

Ctrl + L clear the command

To mention a file start the name with @ sign

commit 

it creates a git add and git commit with a meaningful commit message

/init Creates CLAUDE.md file

Plan Mode / Accept Edits On

Plan mode is to add a new feature. It plans the feature and waits for user to confirm it.

Shift + tab in claude prompt switches the modes.

Managing context window

to see the context usage

/context

Compacy / Clear the context

/compact
/clear

Tracking cost

/usage

Model Context Protocol (MCP)

it consist on two parts Client and Server like

Agent -> MCP Client -> MCP Server -> Github

Each MCP adds token to prompts. Use only necessary ones.

To see MCP servers

/mcp

to add or delete mcp servers

claude mcp add ....
claude mcp remove <SERVER_NAME>

Context 7

It's a MCP which gets the latest versions and the documentation