Difference between revisions of "Claude code"
| Line 11: | Line 11: | ||
= Using Claude Code = | = Using Claude Code = | ||
Upgrade to pro plan to use it in VS Code | Upgrade to pro plan to use it in VS Code | ||
| − | + | === Some commands === | |
Open VS and open terminal inside of VS. | Open VS and open terminal inside of VS. | ||
claude | claude | ||
/login | /login | ||
| − | + | to remember last session | |
| + | claude --resume | ||
| + | |||
/terminal-setup | /terminal-setup | ||
it installs Shift+enter to write multi line commands | it installs Shift+enter to write multi line commands | ||
| Line 21: | Line 23: | ||
Ctrl + L clear the command | Ctrl + L clear the command | ||
| + | To mention a file start the name with @ sign | ||
commit | commit | ||
it creates a git add and git commit with a meaningful commit message | it creates a git add and git commit with a meaningful commit message | ||
| Line 26: | Line 29: | ||
/init | /init | ||
Creates CLAUDE.md file | 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. | ||
| + | |||
| + | === Context 7 === | ||
| + | It's a MCP which gets the latest versions and the documentation | ||
| + | |||
| + | * Go to [https://context7.com https://context7.com] and sign in to start using it. | ||
| + | * Create and Save the API Key. | ||
| + | * Install it by checking the installation notes on the same page | ||
| + | * npx ctx7@latest setup | ||
| + | * I selected '''CLI + Skills''' but it can be '''MCP Server''' as well | ||
Revision as of 09:52, 14 April 2026
Course : Mosh Claude Code Course
Alternatives of Claude Code : CoPilot, Cursor, Windsurf
Contents
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.
Context 7
It's a MCP which gets the latest versions and the documentation
- Go to https://context7.com and sign in to start using it.
- Create and Save the API Key.
- Install it by checking the installation notes on the same page
- npx ctx7@latest setup
- I selected CLI + Skills but it can be MCP Server as well