放任是什么意思| 知性是什么类型的女人| 命理是什么意思| 排档是什么意思| 棒打鸳鸯什么意思| 胃疼喝什么可以缓解| 乳房痒是什么原因| 冠心病什么症状表现| 支付宝账号是什么| 99年是什么年| 国资委主任是什么级别| 檄文是什么意思| 什么人容易得癌症| 苦瓜干泡水喝有什么功效| 甲减什么症状| 儿童脾胃不好吃什么调理脾胃| 什么人不能喝丹参| 两边白头发多是什么原因造成的| f4是什么意思| 右耳朵疼是什么原因| 生存是什么意思| 猫毛过敏吃什么药| 脸痒是什么原因| 人类的祖先是什么生肖| 心率是什么| 花卉是什么| 桃子有什么营养价值| 吃什么补脾| 脾虚湿气重吃什么药| 氢化油是什么东西| 酸梅汤与什么相克| 心脏传导阻滞是什么意思| 耳朵发烧是什么原因| 建议是什么意思| 重睑术是什么意思| 吃阿莫西林过敏有什么症状| 尿肌酐高是什么原因| 喝红花有什么作用与功效| 吃什么食物养肝| 什么的松脂| 化验痰可以检查出什么| pnh是什么病| tel是什么意思啊| 中元节是什么节| 蝴蝶效应是什么| 什么叫子宫腺肌症| 蛋蛋疼是什么原因| 肾结石吃什么药能化石| 犹太人是什么人种| 鱼油吃多了有什么副作用| 贫血要做什么检查| 什么行业赚钱| 蛋糕用什么面粉| 吃什么东西越吃越饿| 推是什么意思| 心里难受想吐是什么原因| 雄黄是什么| 梨和什么一起榨汁好喝| 印迹杂交技术检查什么| 好不热闹是什么意思| 喝什么可以减肥| 纸醉金迷是什么意思| 糖尿病的诊断标准是什么| 做什么动作可以长高| 苏轼是什么派词人| 营养心脏最好的药是什么药| 家里养泥鳅喂什么东西| 肝穿刺检查是什么意思| 宫内囊性回声代表什么| 立冬是什么时候| 黑色素通过什么排出来| 干燥综合征挂什么科| 脚气用什么药膏效果好| 梦到鱼是什么意思| b站是什么意思| 每天吃黄瓜有什么好处| 肌炎是什么病| 掌中宝是什么东西| 什么水果泡酒最好喝| 眼睛oct检查主要检查什么| 黄花菜不能和什么一起吃| 贤内助什么意思| 日斤念什么字| 物流专员是做什么的| 美团是干什么的| 子婴是秦始皇什么人| 十一月是什么月| 匹维溴铵片治什么病| 疤痕子宫什么意思| 月加厷念什么| 肛瘘是什么症状表现| 1014是什么星座| 老年人反复发烧是什么原因引起的| 公诉是什么意思| 痛风吃什么水果好| 肝右叶低密度灶是什么意思| 属狗的是什么命| 尿的正常颜色是什么样| 手掌红什么原因| 眼睛有眼屎是什么原因| 中老年人吃什么油好| 女人得性疾病什么症状| 升结肠管状腺瘤是什么意思| 不成敬意什么意思| 喘不上来气是什么原因| 老上火是什么原因造成的| 梦见好多黄鳝是什么意思| 人为什么会出汗| 属狗是什么命| rose是什么意思| 什么时间段买机票最便宜| 奥美拉唑什么时候吃最好| 眼睛晶体是什么| 中国防御系统叫什么| 琏是什么意思| 吃什么提高免疫力最好最快| 血管钙化是什么意思| 牙龈肿是什么原因引起的| 眼力见是什么意思| 感冒流黄鼻涕吃什么药| 破壁机什么牌子的最好| 葡萄糖酸钙锌口服溶液什么时候喝| 吃什么东西可以长高| 情投意合是什么意思| 豆薯是什么| 乙肝病毒携带者有什么症状| 百白破是预防什么的| 土猪肉和普通猪肉有什么分别| 小便发红是什么原因| f4是什么意思| 葡萄糖是什么| hvb是什么意思| 西瓜霜是什么做的| 外贸原单是什么意思| 2009年是什么生肖| 咿呀咿呀哟是什么歌| 运动减肥为什么体重不减反增| 蚊虫叮咬红肿用什么药快速消肿| 擦汗表情是什么意思| 慢性炎伴鳞化是什么意思| 妮子什么意思| t11椎体在什么位置| 检查乳房挂什么科| 1975年属什么生肖| 蛇年五行属什么| 莫名心慌是什么原因| 布洛芬是什么药| 荔枝有什么好处| 势如破竹是什么意思| 过敏性咳嗽吃什么药| kappa属于什么档次| 恒顺众生是什么意思| 三姓家奴是什么意思| 二椅子什么意思| 月经期血块多是什么原因| 胸口闷疼是什么原因| 东北有什么好玩的景点| 欣字属于五行属什么| 7月17日什么星座| 白芷有什么作用与功效| m是什么品牌| add什么意思| 胆囊炎不能吃什么食物| 财政部部长什么级别| 牙龈萎缩吃什么维生素| 女人梦见掉牙齿是什么征兆| 猫能吃什么人吃的东西| 入殓师是干什么的| 38年属什么生肖| 12月3日什么星座| 胸口闷疼是什么原因| 狼吞虎咽什么意思| 什么人不适合做业务员| 张国荣什么时候去世的| cct是什么意思| 什么叫做亚健康| 黄疸是什么| 净土的意思是什么| 飞蚊症用什么药| 硫磺有什么作用| 间质性肺病是什么意思| 气短咳嗽是什么原因引起的| 长高吃什么| 恩赐是什么意思| 去黄疸吃什么药| 葡萄球菌感染是什么原因引起的| 美国白宫是干什么的| 吃什么会影响验孕棒检验结果| dd是什么意思| 男人脚底有痣代表什么| 名字为什么不能叫安然| 混动是什么意思| 50岁属什么| 甲钴胺的副作用是什么| 赤脚医生是什么意思| 参见是什么意思| 什么是白内障症状| 胃热吃什么药效果好| 章鱼是什么动物| 沉迷是什么意思| 瓦特发明了什么| 大便里面有血是什么原因| advil是什么药| 权衡利弊是什么意思| 性生活时间短吃什么药| 属鸡是什么命| 为什么一吃完饭就肚子疼| 梦见墓碑是什么意思| 招风耳是什么意思| 右手臂痛是什么预兆| 热疹用什么药膏最好| 查胆囊挂什么科| 今年9岁属什么| bh是什么意思| 扁桃体疼吃什么药| 犯了痔疮为什么老放屁| 挥霍是什么意思| 虱子用什么药可以根除| 什么十分什么| 蚂蚁爱吃什么东西| afd是什么意思| 男孩什么时候开始发育| 热痱子长什么样| 超七水晶是什么| 破处是什么意思| 人民币代码是什么符号| 1985年是什么命| 拔完智齿吃什么消炎药| 肌醇是什么| 大便发绿色是什么原因| 景象什么意思| 脑萎缩是什么原因引起的| 昔字五行属什么| 内分泌紊乱有什么症状表现| 望惠存是什么意思| 陈皮泡酒喝有什么功效和作用| 双性恋是什么| 肝穿刺检查是什么意思| 女人一般什么时候容易怀孕| 梦房子倒塌什么预兆| 切脉切的是什么脉| 拔罐出水是什么原因| 肝功能异常是什么| 神奇的近义词是什么| 龙眼是什么季节的水果| 为什么会有甲状腺结节| 2018年属什么生肖| 绿豆与什么食物相克| lge是什么意思| 2月15号是什么星座| 什么叫假性发烧| 尿胆原弱阳性什么意思| 一岁宝宝口臭是什么原因引起的| visa卡是什么意思| 疯马皮是什么皮| 红糖不能和什么一起吃| 氟苯尼考兽药治什么病| 湿厕纸是干什么用的| 72年属鼠是什么命| 吃饭是什么意思| 甲醛是什么| 软饮是什么意思| 鼻塞流清鼻涕吃什么药| 火加良念什么| 百度

Try to extend agent mode in VS Code!

“中华优秀传统文化走基层”活动走进新疆哈密

百度 1970年9月,由北京大学、部分中小学、商务印书馆、科学院等单位调人组成了修订工作小组,开始了《新华字典》的修订工作。

GitHub Copilot is an AI-powered coding assistant integrated into Visual Studio Code. It provides code suggestions, explanations, and automated implementations based on natural language prompts and existing code context. Copilot has been trained on public code repositories and can assist with most programming languages and frameworks.

Core capabilities

Code completions

Copilot provides inline code suggestions as you type, ranging from single line completions to entire function implementations. With next edit suggestions, it predicts the next logical code change based on your current context.

Examples:

  • Type function calculateTax( to get a complete tax calculation implementation
  • Write // Create a REST API endpoint for user authentication to generate Express.js route code
  • Begin a React component with const UserProfile = ({ to receive a complete functional component with TypeScript types

Learn more about code completions in VS Code.

Autonomous coding

VS Code and agent mode can autonomously plan and execute complex development tasks, coordinating multi-step workflows that involve running terminal commands or invoking specialized tools. It can transform high-level requirements into working code.

Install Model Context Protocol (MCP) servers or tools from Marketplace extensions to further enhance the capabilities of the autonomous coding experience. For example, pull information from a database or connect to external APIs.

Example tasks:

  • Implement authentication using OAuth
  • Migrate the codebase to a new framework or language
  • Debug failing tests and apply fixes
  • Optimize performance across the application

Learn more about autonomous coding with agent mode and configuring MCP servers in VS Code.

Natural language chat

Use natural language to interact with your codebase through chat interfaces. Ask questions, request explanations, or specify code changes using conversational prompts.

Apply changes across multiple files in your project using single prompts. Copilot analyzes your project structure and makes coordinated modifications.

Common queries:

  • "How does authentication work in this project?"
  • "What's causing the memory leak in the data processing function?"
  • "Add error handling to the payment processing service"
  • "Add a login form and backend API"

Screenshot of the Chat view asking how to add a page to a web app

Learn more about using chat in VS Code.

Smart actions

VS Code has many predefined actions for common development tasks that are enhanced with AI capabilities and integrated into the editor.

From helping you write commit messages or pull requests descriptions, renaming code symbols, fixing errors in the editor, to semantic search that helps you find relevant files.

Screenshot of the Smart Actions menu in VS Code

Learn more about the smart actions in VS Code.

Getting started

Step 1: Set up Copilot

  1. Set up Copilot from the Copilot dashboard in the Status Bar
  2. Sign in with your GitHub account

Hover over the Copilot icon in the Status Bar and select Set up Copilot.

Step 2: Basic code completion

Create a new file and start typing. Copilot displays suggestions in ghost text.

// Try typing this in a new .js file:
function factorial(

Accept suggestions with Tab.

Step 3: Autonomous coding

Let Copilot handle complex tasks by using the chat interface and agent mode. The AI will iterate on the code until the task is complete.

  1. Open the Chat view (??I (Windows, Linux Ctrl+Alt+I))
  2. Select Agent from the chat mode dropdown list
  3. Ask to generate a basic web app like: "Create a basic node.js web app to share cycling tips. Make it look modern and responsive."

Notice how the code is generated step-by-step, and dependencies are installed automatically.

Step 4: Inline Chat

Use inline chat to ask questions about your code while you're in the flow of writing code.

  1. Select some code in your editor
  2. Press ?I (Windows, Linux Ctrl+I) to open editor inline chat
  3. Ask to explain or make a modification like: "Refactor this code to ..."
  4. Review and accept the suggested changes

Usage scenarios

Code analysis and review

Understanding existing codebases and identifying issues:

  • "Explain the authentication flow in this application"
  • "What are the potential security issues in this payment handler?"
  • "Document this API endpoint with proper JSDoc comments"

Debugging and troubleshooting

Identifying and resolving code issues:

  • "Why is this component re-rendering unnecessarily?"
  • "Find and fix the memory leak in this data processing pipeline"
  • "Optimize this database query for better performance"

Learn more about using AI for debugging.

Feature implementation

Building new functionality:

  • "Create a user registration system with email verification"
  • "Add real-time notifications using WebSockets"
  • "Implement a shopping cart with local storage persistence"

Testing and quality assurance

Generating tests and ensuring code quality:

  • "Generate comprehensive unit tests for this service class"
  • "Create integration tests for the API endpoints"
  • "Add property-based tests for this data validation function"

Learn more about using AI for testing.

Learning and documentation

Understanding new technologies and patterns:

  • "Show me the differences between async/await and Promises"
  • "How would you implement this pattern in Go instead of Python?"
  • "What are the best practices for error handling in React?"

Customize the AI to your workflow

Custom instructions

Use custom instructions to define project-specific coding conventions and patterns, and the AI will generate code that matches your style. Automatically apply these instructions to all chat requests or only for specific file types.

---
applyTo: "**"
---
# My Coding Style
- Use arrow functions for components
- Prefer const over let
- Always include TypeScript types
- Use descriptive variable names
- Follow the Repository pattern for data access

Learn more about using custom instructions to tailor the AI to your coding style.

Language models

Quickly switch between different AI models to optimize for speed, reasoning, or specialized tasks. Choose from various built-in models or connect to external providers and bring your own API keys.

Screenshot that shows the model picker in the Chat view.

Learn more about using language models in VS Code.

Custom chat modes

The chat experience in VS Code can operate in different modes to switch between asking questions, making edits, or running autonomous coding sessions. You can also create custom chat modes that fit your workflow. For example, create a chat mode that focuses on planning and architecture discussions. Specify which tools chat is allowed to use, and provide custom instructions to provide the right context in which it should operate.

Screenshot showing the Chat view, highlighting the chat mode dropdown list.

Learn more about creating your own chat modes.

Extend chat with tools

Extend the capabilities of the chat experience with specialized tools from MCP servers or Marketplace extensions. For example, add tools for querying databases, connecting to external APIs, or performing specialized tasks.

MCP tools list

Learn more about using MCP servers and tools.

Best Practices

  • Choose the right tool for the task. Get code completions while you're coding, use chat for natural language queries, and pick the chat mode that fits your workflow.

  • Write effective prompts to get the best results. Be specific, provide the right context, and iterate often.

  • Customize the AI to your coding style and project conventions by using custom instructions, prompt files, or chat modes.

  • Extend the AI's capabilities with tools from MCP servers or Marketplace extensions.

  • Choose a language model that is optimized for your task. Use fast models for quick code suggestions, reasoning models for more complex requests.

Get more tips and tricks for using AI in VS Code.

Pricing

You can start using GitHub Copilot for free with monthly limits on completions and chat interactions. For more extensive usage, you can choose from various paid plans.

View detailed pricing →

Next steps

1979年出生属什么生肖 为什么会长闭口粉刺 旧加一笔是什么字 食管裂孔疝是什么意思 亮油什么时候涂
中老年人补钙吃什么牌子的钙片好 绯闻是什么意思 脚底出汗是什么原因 鲤鱼爱吃什么 眩晕停又叫什么
80年属什么 劳改犯是什么意思 巨蟹女喜欢什么样的男生 百无一用是什么意思 后羿是什么生肖
武夷山岩茶属于什么茶 脱肛是什么样子的 咋啦是什么意思 双肺纹理增多是什么意思 什么是腱鞘炎
尿毒症前兆是什么症状表现hcv8jop2ns8r.cn 星是什么意思aiwuzhiyu.com 2月27日什么星座hcv9jop3ns7r.cn 橙色加蓝色是什么颜色yanzhenzixun.com 女生月经迟迟不来是什么原因hcv8jop7ns6r.cn
韧带拉伤用什么药好aiwuzhiyu.com 社科院是干什么的hcv8jop8ns1r.cn kor是什么意思hcv8jop3ns4r.cn 强心剂是什么药hcv9jop4ns0r.cn 吃洋葱有什么好处hcv9jop3ns5r.cn
什么病会引起牙疼bjhyzcsm.com 发烧为什么感觉冷hcv8jop2ns3r.cn 突然头晕是什么情况bysq.com 蕾字五行属什么hcv7jop6ns7r.cn 鱼生是什么鱼hcv9jop4ns4r.cn
异口同声什么意思hcv9jop2ns8r.cn peni是什么意思hcv9jop4ns6r.cn 老爹鞋适合什么人穿wuhaiwuya.com noisy是什么意思hcv9jop0ns5r.cn 梦见别人结婚是什么征兆hcv9jop4ns3r.cn
百度