大头儿子叫什么名字| 感冒打什么针| nba季后赛什么时候开始| 什么是川崎病是什么病| d2聚体高是什么意思| 1992年属什么| 体检前要注意什么| 做梦遗精是什么原因| 女性气血不足吃什么调理| crayon什么意思| 每天吃洋葱有什么好处| 脚底长水泡是什么原因| RHD血型阳性什么意思| 雄激素是什么意思| 晚上睡不着吃什么药| 81年属什么| 有酒窝的女人代表什么| 肌酐高吃什么食物好| 湿疹是什么意思| 洗衣机不出水是什么原因| 打耳洞什么季节最好| 菠菜和豆腐为什么不能一起吃| 祉是什么意思| 海星吃什么食物| 固涩是什么意思| 金玉良缘是什么生肖| 焯是什么意思| 肺部有空洞是什么病症| 子宫内膜厚是什么原因| 促排卵是什么意思| 乙醇和酒精有什么区别| 婴儿第一次理发有什么讲究吗| 4月8日是什么星座| 血小板低有什么危害| 彩照是什么底色| 包皮过长有什么危害| 喜欢一个人会有什么表现| 冯巩什么军衔| 定亲是什么意思| atp是什么意思| 正常的白带是什么样的| jhs空调是什么牌子| 怀孕初期需要注意什么| 酵母样真菌是什么意思| 残局是什么意思| girl什么意思| 白砂糖和冰糖有什么区别| 灰指甲什么样| 金字旁的有什么字| 汗斑是什么原因引起的| 满字是什么结构| 血糖高能吃什么菜| 耳鸣是什么原因造成的| hpv挂什么科| 桃花的花语是什么| 什么高什么低| 淋巴结反应性增生是什么意思| 忙碌的动物是什么生肖| 阴道撕裂用什么药| 尿胆原normal是什么意思| 女性睾酮低说明什么| 纬字五行属什么| 薏米有什么作用| 古怪是什么意思| 男人吃叶酸片有什么好处| 今天拉警报什么意思| 三十六计第一计是什么| 21金维他什么时候吃效果最好| blub是什么意思| 眼睛有痣代表什么| 女人吃什么养肝排毒| 新鲜橄榄菜长什么样子| 拍肺片挂什么科| 脚底干裂起硬皮是什么原因怎么治| uranus是什么星球| 妊娠高血压什么症状| 痛风吃什么最好| 脚底抽筋是什么原因引起的| 富硒对人体有什么好处| 今年9岁属什么| 尿道口流脓什么病| 低压高会引起什么后果| 威海有什么特产| 天气热适合吃什么| rag是什么| mds是什么病的简称| 五合是什么意思| 内分泌失调吃什么药| 长江后浪推前浪是什么意思| 大山羊是什么病| 素海参是什么做的| 白头发有什么方法变黑| 长针眼是什么意思| 栖字五行属什么| 什么是五谷| 今天的日子适合做什么| 肺部感染是什么症状| 早搏吃什么药最好| 精分是什么| brown什么意思| 桥本甲状腺炎吃什么药| 肚子有腹水是什么症状| 六畜兴旺是什么意思| 什么动物的血是蓝色的| 女生真空是什么意思| 85年什么命| 惋惜是什么意思| 三合局是什么意思| 妤读什么| 哥德巴赫猜想是什么| 戊是什么意思| 腰椎疼挂什么科| 甲状腺结节是什么引起的| 白化病是什么遗传| 一什么春雷| 爱放屁什么原因| 什么牌子的燃气灶质量好| 莓茶什么人不适合喝| 左卡尼汀口服溶液主要治疗什么| 菊花茶泡了为什么会变绿| 脂肪肝是什么病| 什么是直男| 伽马刀是什么| 最难写的字是什么| 经常吃蜂蜜有什么好处| 被蜜蜂蛰了用什么药| 异卵双胞胎什么意思| 血糖高能吃什么肉| b超能检查出什么| 菲薄是什么意思| 小苏打学名叫什么| 面瘫是什么原因造成的| 阿q精神是什么意思| 手汗症挂什么科| 九宫是什么意思| 为什么不能拜女娲娘娘| 经常喝咖啡有什么好处和坏处| 怀孕孕酮低有什么影响| 过敏性结膜炎用什么药| cba是什么| 界定是什么意思| 无名指戴戒指什么意思| 不睡人的空床放点什么| 9月3号是什么纪念日| 王八和乌龟有什么区别| 手心有痣代表什么| 什么样的闪电| 兔子吃什么| 睡久了头疼是什么原因| 手电筒什么牌子的好| 丛生是什么意思| 按摩椅什么品牌最好| 避孕套是什么| 犹太人为什么那么聪明| 纪委书记是什么级别| 梦见钱是什么预兆| 芥子是什么意思| 女人怀孕的最佳时间是什么时间| 那英姓什么| 艾滋病英文缩写是什么| 人中龙凤下一句是什么| 荨麻疹擦什么药膏| 楚楚动人什么意思| 胆红素高说明什么| 做肠镜要做什么准备| 结核阳性是什么意思| 糖尿病什么水果不能吃| 林子大了什么鸟都有| 克拉是什么单位| 什么是沉香| 心脏不好挂什么科| acer是什么牌子| 荔枝有什么营养| in77是什么意思| 周期性是什么意思| 奶昔是什么| 趾高气昂是什么意思| 巨蟹座是什么性格| 又什么又什么的什么| 什么是新鲜感| 来大姨妈拉肚子是什么原因| 古井贡酒属于什么档次| 突然戒烟对身体有什么影响| 桃花长什么样| 这是什么字| 镜检白细胞高是什么原因| 紫藤花什么时候开花| 6月29什么星座| 嘬是什么意思| 六月五号是什么星座| 圆珠笔是什么笔| 北京的市花是什么花| 四叶草代表什么| 嵌甲去医院挂什么科| 发烧适合吃什么食物| 胆汁反流有什么症状| 不速之客是什么意思| 疏肝解郁吃什么药| pd999是什么金| 湿气重是什么原因| 333是什么意思| 为什么趴着睡觉会胀气然后打嗝| 蚊子吃什么| 鹅和什么一起炖最好吃| 开业送什么好| 禅茶一味什么意思| 滑丝是什么意思| 叉烧是什么肉| 0706是什么星座| 芒果不能和什么食物一起吃| 猪男和什么属相最配| 鬼针草有什么功效| 导管扩张是什么意思| 玻尿酸是什么东西| me是什么基团| 中天是什么意思| 势利眼的人有什么特征| 八爪鱼是什么| 1月28日什么星座| 中指和无名指发麻是什么原因| 电销是什么工作| 血糖和尿糖有什么区别| 燕窝有什么功能| 水手是干什么的| 彤五行属什么| 九华山在什么地方| 大红袍是什么茶| 鹿晗是什么星座| 血透是什么意思| 肉桂粉是什么做的| 咽后壁淋巴滤泡增生吃什么药| 芒硝是什么东西| 打马虎眼是什么意思| 木元念什么| 三八妇女节送什么好| 2026属什么生肖| 感冒喝什么饮料| 于谦为什么加入国民党| 粘米粉可以做什么好吃的| 剖腹产吃什么下奶最快| 精神卫生科看什么病| 100聚酯纤维是什么面料| 儿女情长英雄气短是什么意思| 不敢苟同是什么意思| 打嗝是什么病的前兆| 奢侈品是什么意思| 炖肉放什么容易烂| 眼睛视力模糊用什么眼药水| 什么是大姨妈| 弥补是什么意思| 晚上睡觉多梦是什么原因| 膝盖不好的人适合什么运动| 肝多发钙化灶什么意思| 火药是什么时候发明的| 五更是什么时辰| 肌肉劳损用什么药| 陈皮泡酒喝有什么功效和作用| 情是什么意思| 日有所思夜有所梦是什么意思| 梦到抓到鱼是什么意思| 什么样的人不能吃海参| 高密度脂蛋白是什么意思| 天空为什么是蓝色| 肌钙蛋白低说明什么| 百度

Try to extend agent mode in VS Code!

Le thé Yuhua de Nanjing

百度 一年前贷款申请需要22个小时,去年已经降到4~5个小时,最快的能达到秒级。

Visual Studio Code includes a fully featured integrated terminal. You can use it to run commands like echo, ls, and git, just like a standalone terminal. The terminal in VS Code also provides integration with the editor to support features such as links to workspace files and error detection.

The terminal can use various shells installed on your machine. A shell is a program that interprets and executes the commands by interacting with the operating system. Examples of shells include Bash, Zsh, and PowerShell.

This tutorial guides you through the basics of using the terminal in Visual Studio Code.

Run your first command in the terminal

While you're writing code, you might have to run shell commands to build, test, or deploy your application. The terminal in VS Code enables you to run these commands without leaving the editor.

To get started with the terminal:

  1. Start VS Code and open a folder or workspace.

  2. Open the terminal by selecting View > Terminal from the menu bar, or by pressing the ?` (Windows, Linux Ctrl+`) keyboard shortcut.

    Based on your operating system configuration, the terminal opens with a default shell like Bash, PowerShell, or Zsh. The shell's working directory starts at the root of the workspace folder.

    Open the terminal

  3. Enter a basic command like ls to list the files in the current directory.

    The terminal displays the output of the command, similar to a standalone terminal, except that you stay within the editor.

    Run a command in the terminal

    Tip: You can enlarge the terminal by dragging the terminal panel's border or by selecting the ^ icon to maximize the panel.

Interact with command output

The terminal in VS Code also provides features to interact with command output. Commands often output file paths or URLs that you might want to open or navigate to. For example, a compiler or linter might return an error message with a file path and line number. Instead of searching for that file, you can select the link in the terminal output to open the file directly in the editor.

Let's see how you can interact with the command outputs in the terminal:

  1. Open the terminal where you previously ran the ls command.

  2. In the terminal, hold the Ctrl/Cmd key, hover over a file name, and then select the link.

    Notice that when you hover over text in the output, it changes into a link. When you select a file name, VS Code opens the selected file in the editor.

    Navigate to files/URLs using links in terminal output

    All text in the terminal output is clickable. If you select a hyperlink in the terminal, it opens the link in the default browser. For other text, VS Code tries to search the workspace for files that contain the text.

  3. Run the following command to create a Command.txt file that contains a list of available shell commands.

    • PowerShell

      Get-Command | Out-File -FilePath .\Command.txt
      
    • Bash / Zsh

      ls -l /usr/bin > Command.txt
      
  4. Enter the following command to search for a command in the Command.txt file.

    • PowerShell

      Get-ChildItem *.txt | Select-String "dir"
      
    • Bash / Zsh

      grep -n "dir" *.txt
      

    Notice that the command output contains the file name and the line number where the search result is found. The terminal identifies this text as a link.

  5. Select one of the links to open the file in the editor at that specific line in the file.

    Navigate to a specific line in a file

Learn more about the different types of links in the terminal.

Navigate to previous commands

As you work in the terminal, you might need to review a previous command and its output, or maybe you want to rerun a command. You can quickly navigate to the previous commands by using keyboard shortcuts.

To navigate to previous commands:

  1. Open the terminal you used previously.

  2. Press the ?↑ (Windows, Linux Ctrl+Up) keyboard shortcut to scroll to the previous command in the terminal history.

    Notice that the terminal scrolls to the previous command and highlights it.

    Navigate to the previous command

    If you press ?↑ (Windows, Linux Ctrl+Up) multiple times, the terminal scrolls further through the command history. You can use the ?↓ (Windows, Linux Ctrl+Down) keyboard shortcut to navigate in the other direction.

  3. You might see a circle icon in the gutter next to a previously run command. Select the circle icon, and then select Rerun Command to run the command again.

    Rerun a command

Learn more about navigating through the command history.

Run commands in another shell

The terminal supports having multiple terminals open at the same time. For example, you could dedicate one terminal to run Git commands and another terminal to run build scripts. You can also run commands in different shells based on your preference.

To add a new terminal in a different shell:

  1. Select the ? icon in the terminal panel to open the terminal dropdown, and then select from one of the available shells.

    Note: The available shells depend on the shells installed on your machine.

    Select a different shell

    A new terminal opens with the selected shell, where you can enter commands like you did previously.

    Tip: You can also select the + icon to create a new terminal for the default shell, use the ??` (Windows, Linux Ctrl+Shift+`) keyboard shortcut, or select Terminal > New Terminal from the menu bar.

  2. You can view the open terminals from the list in the terminal panel.

    View the list of terminals

    To switch to another terminal, select it from the list of terminals.

    Tip: You can rename a terminal in the list by right-clicking on it and selecting Rename.

  3. Drag a terminal from the terminal list into the editor area.

    The terminal is moved to an editor tab, where you can arrange it like other editor tabs. For example, you can drag the terminal tab out of the VS Code window to make it a floating window. Learn more about custom layouts.

    Move a terminal to the editor area

  4. Select the trashcan icon when hovering over the terminal list to close an open terminal.

    Close a terminal

Learn more about managing terminals.

Next steps

In this tutorial, you learned how to get started with the terminal in VS Code. Here are some more topics to explore:

医学上pi是什么意思 支付宝提现是什么意思 旗人是什么意思 喝什么可以减肥 农历9月11日是什么星座
三氯蔗糖是什么东西 什么是回迁房 投诉医生打什么电话 中年男人遗精是什么原因 疳积是什么
赊事勿取是什么意思 头疼看什么科 小本创业做什么生意好 梦魇是什么原因造成的 经常做噩梦的原因是什么
激光脱毛对身体有什么危害 生花生吃了有什么好处 红色加绿色是什么颜色 正痛片别名叫什么 肝部出现腹水是什么原因
网状的蘑菇叫什么aiwuzhiyu.com 抓手是什么意思0735v.com 属猪和什么属相最配hcv7jop6ns8r.cn 贼眉鼠眼是什么生肖hcv8jop5ns7r.cn 2017 年是什么年aiwuzhiyu.com
售罄是什么意思inbungee.com 5月21日是什么星座huizhijixie.com 什么生木hcv8jop5ns1r.cn 2月28号是什么星座hcv7jop4ns7r.cn 后脑勺白头发多是什么原因hcv8jop5ns5r.cn
1212是什么星座bjhyzcsm.com 菠菜是什么意思hcv8jop6ns1r.cn 白猫是什么品种hcv9jop7ns3r.cn 床咚是什么意思啊helloaicloud.com 军师是什么意思mmeoe.com
14数字代表什么意思hcv8jop6ns5r.cn 三基色是什么颜色hcv8jop1ns1r.cn 白色车里放什么摆件好hcv8jop4ns3r.cn 甲亢都有什么症状hcv8jop8ns6r.cn 出汗少的人是什么原因hcv9jop0ns9r.cn
百度