生地是什么| 恭请是什么意思| 小三阳有什么症状表现| 脂膜炎是什么原因引起的| 月建是什么意思| 美人尖是什么意思| 一朵什么| 龋齿是什么原因造成的| 床单什么颜色有助于睡眠| 莫逆之交是什么意思| 黑户什么意思| 中国国酒是什么| 白脉病西医叫什么病| 牙周炎吃什么药好| 皮肤病是什么原因造成的| 神经性皮炎是什么| 令坦是对方什么人的尊称| 青蛙吃什么食物| 比围是什么| 身体什么| 机遇什么意思| 夏天脚出汗是什么原因| 喝大麦茶有什么好处| 肌酐高什么东西不能吃| 尿蛋白三个加号吃什么药| 什么东西燃烧脂肪最快| 人生得意须尽欢什么意思| hsv是什么病毒| 卵巢囊肿挂什么科| 血糖高吃什么好能降糖| 耳膜破了有什么症状| 提高免疫力吃什么好| 一个人自言自语的说话是什么病| 鱼肝油是什么| 鸡吃什么长得又快又肥| 护士最高职称是什么| 三点水加一个心读什么| 比干是什么神| 石楠花是什么味道| 地壳是什么| 是什么字| 泪腺堵塞是什么症状| 染色体由什么和什么组成| 皮肤发红发烫是什么原因| 散粉是干什么用的| 红红的枫叶像什么| 左耳烫代表什么预兆| 秋天有什么花| 糖尿病早餐吃什么好| 陈皮泡水喝有什么功效| 什么情况下需要根管治疗| 一抽一抽的打嗝叫什么| 小便白细胞高是什么原因| 肚子里的蛔虫是什么意思| 壁虎吃什么| 白矾是什么东西| 腿走路没劲发软是什么原因| 右眼睛跳是什么原因| 类风湿性关节炎用什么药| 倪妮和倪萍什么关系| 一什么阳光填量词| 腋下看什么科| 强扭的瓜不甜什么意思| 印尼用什么货币| 01年属什么的| 什么酒好喝| 嗓子有黄痰是什么原因| 想什么来什么是什么定律| 阴囊湿疹长什么样图片| 头抖是什么原因| 钟字五行属什么| 一什么山| 中东为什么叫中东| 淋巴发炎吃什么药| 高血压三级是什么意思| 盐的主要成分是什么| 中耳炎用什么药最好| 手足口一般擦什么药膏| 寒风吹起细雨迷离是什么歌| 十一月十一号是什么星座| 梦见采蘑菇是什么预兆| 1921年是什么年| 父母宫代表什么| oa是什么意思| 什么头什么面| 外贸原单是什么意思| 双鱼座有什么特点| 氪金是什么意思| 奶奶的奶奶叫什么| 行尸走肉什么意思| 非那根又叫什么| 右手发麻是什么病的前兆| 带状疱疹是什么病| 气泡水是什么水| 一人吃饱全家不饿是什么生肖| 蜜糖有什么功效和作用| 豁口是什么意思| 什么药补血效果最好最快| 2015属什么| 各位同仁用在什么场合| 什么是混合痔| ctc什么意思| 食管炎吃什么药| 小孩肚子痛挂什么科| 脾稍大什么意思| hca是什么意思| 眷顾是什么意思| 湿气重不能吃什么食物| 霉菌阴性是什么意思| 印度的全称是什么| 狐臭挂什么科| 轻微脑震荡吃什么药| 月经期间喝酒有什么危害| 九月十五日是什么星座| 什么降血糖| 胃不好喝什么茶| 犟驴是什么意思| 身体动不动就出汗是什么原因| 移民澳洲需要什么条件| 脱肛吃什么药最有效| 异物进入气管什么症状| 渡劫是什么意思| 世界上最难写的字是什么| 恶性循环是什么意思| 猫咪拉肚子吃什么药| 马赛克是什么| 急性扁桃体炎吃什么药| 向日葵代表什么意思| 染色体异常是什么意思| 61年属什么生肖| 什么气什么现| 大阪烧是什么| 猪砂是什么东西| 雾化治疗的作用是什么| 肺纤维化是什么病| 什么是神话故事| 夜晚咳嗽是什么原因| 不撞南墙不回头是什么意思| 孕妇吃什么水果| 亦的意思是什么| 公务员什么时候退休| 急性中耳炎吃什么药| 手指麻木是什么原因引起的| 62岁属什么| 怀孕什么时候显怀| 09年属什么| 抗生素是什么意思| 梦见狗咬自己是什么意思| 为什么头顶会痛| 信阳毛尖属于什么茶| 什么情况下| 什么白| 男人为什么会得尿结石| 载脂蛋白是什么意思| 胶原蛋白的成分是什么| 为什么六月腊月不搬家| 益生菌有什么功效| 斗是什么样子| 肠胃炎挂什么科| 天秤座什么象星座| 一月十八是什么星座| 筋膜刀是什么| 祛湿吃什么食物| 什么坚果适合减肥吃| 光斑是什么意思| 叶酸每天什么时候吃最好| 苦口婆心是什么意思| 鹦鹉吃什么食物| 猫的尾巴有什么用处| 阴阳和合是什么意思| 血热是什么症状| 喝荷叶茶有什么好处和坏处| 黑油是什么油| 何首乌长什么样| 美国的国花是什么花| 豪爽是什么意思| 耳结是什么原因造成的| 双肾尿酸盐结晶是什么意思| 物化是什么意思| 拔牙后吃什么恢复快| 姗字五行属什么| 鼻子流水是什么原因| 脸上老是长闭口粉刺是什么原因| 日抛什么意思| 波罗蜜多什么意思| 艾灸后放屁多是什么原因| 山楂炖肉起什么作用| 焦虑症是什么症状| 玄学是什么意思| 蜜蜂飞进家里预示什么| 为什么长口腔溃疡| 鬼压床是什么原因造成的| 痛风吃什么药止痛最快| 没必要什么意思| 婴儿不睡觉是什么原因| 什么东西可以去口臭呀| 绸缪是什么意思| 小苏打是什么成分| 鹿晗的原名叫什么| 张学良为什么被囚禁| 血管瘤是什么| 庆帝为什么杀叶轻眉| 小孩咬人是什么原因| 什么属相好| 3代表什么意思| 尿频尿急是什么原因| 造纸术是什么时候发明的| 3岁小孩说话结巴是什么原因| 梦见小白兔是什么意思| 羽毛球拍什么牌子好| 性腺六项是查什么的| 下九流指的是什么| 亢是什么意思| 护士是干什么的| 老是打喷嚏是什么原因| 方兴未什么| 什么的睡觉| 孕妇为什么那么怕热| 钰字五行属什么| 葡萄糖偏低是什么意思| 经常耳鸣是为什么| 喉咙有异物挂什么科| 梦到蛇是什么预兆| 梦见旅游是什么意思| 老虎菜为什么叫老虎菜| 开五行属性是什么| a型血的人容易得什么病| 便秘吃什么可以调理| 油菜花什么颜色| 梦见下雨是什么意思| k9什么意思| 胡牌是什么意思| 95年属什么生肖婚配表| 66岁属什么生肖| 胃疼喝什么能缓解疼痛| 果是什么结构的字| 眼睛疲劳用什么眼药水| 牛顿发明了什么| 小孩头晕是什么原因| v8是什么| 阿哥是什么意思| 手术前吃什么补充营养| 晕车是什么原因| 双肺呼吸音粗是什么意思| 浙江有什么特产| 金鱼藻属于什么植物| 温度计里面红色液体是什么| 尚书相当于现在的什么官| 985代表什么意思| 在什么后面| 为什么会尿床| 李白是什么| 白灼是什么意思| 什么是盐| 聊胜于无的聊是什么意思| 什么是扁桃体| 什么什么相接| 12点是什么时辰| 为什么射不出来| 尿尿疼是什么原因| 巨蟹座什么性格| 什么可以补气血| 胆囊结石有什么影响| 晚上睡觉咳嗽是什么原因| 百度

Try to extend agent mode in VS Code!

中国人民解放军文职人员条例-资料库-时政频道-中工网

百度 壁炉主要是烧炭来御寒,并且将出烟孔放在室外,避免炭烟中毒。

Visual Studio Code has a powerful command-line interface built-in that lets you control how you launch the editor. You can open files, install extensions, change the display language, and output diagnostics through command-line options (switches).

command line example

If you are looking for how to run command-line tools inside VS Code, see the Integrated Terminal.

Command line help

To get an overview of the VS Code command-line interface, open a terminal or command prompt and type code --help. You will see the version, usage example, and list of command line options.

command line help

Launching from command line

You can launch VS Code from the command line to quickly open a file, folder, or project. Typically, you open VS Code within the context of a folder. To do this, from an open terminal or command prompt, navigate to your project folder and type code .:

launch VS Code

Note: Users on macOS must first run a command (Shell Command: Install 'code' command in PATH) to add VS Code executable to the PATH environment variable. Read the macOS setup guide for help.

Windows and Linux installations should add the VS Code binaries location to your system path. If this isn't the case, you can manually add the location to the Path environment variable ($PATH on Linux). For example, on Windows, the default VS Code binaries location is AppData\Local\Programs\Microsoft VS Code\bin. To review platform-specific setup instructions, see Setup.

Insiders: If you are using the VS Code Insiders preview, you launch your Insiders build with code-insiders.

Core CLI options

Here are optional arguments you can use when starting VS Code at the command line via code:

Argument Description
-h or --help Print usage
-v or --version Print VS Code version (for example, 1.22.2), GitHub commit ID, and architecture (for example, x64).
-n or --new-window Opens a new session of VS Code instead of restoring the previous session (default).
-r or --reuse-window Forces opening a file or folder in the last active window.
-g or --goto When used with file:line{:character}, opens a file at a specific line and optional character position. This argument is provided since some operating systems permit : in a file name.
-d or --diff <file1> <file2> Open a file difference editor. Requires two file paths as arguments.
-m or --merge <path1> <path2> <base> <result> Perform a three-way merge by providing paths for two modified versions of a file, the common origin of both modified versions, and the output file to save merge results.
-w or --wait Wait for the files to be closed before returning.
--locale <locale> Set the display language (locale) for the VS Code session. (for example, en-US or zh-TW)

launch with locale

Opening Files and Folders

Sometimes you will want to open or create a file. If the specified file does not exist, VS Code will create them for you along with any new intermediate folders:

code index.html style.css documentation\readme.md

For both files and folders, you can use absolute or relative paths. Relative paths are relative to the current directory of the command prompt where you run code.

If you specify more than one file at the command line, VS Code will open only a single instance.

If you specify more than one folder at the command line, VS Code will create a Multi-root Workspace including each folder.

Argument Description
file Name of a file to open. If the file doesn't exist, it will be created and marked as edited. You can specify multiple files by separating each file name with a space.
file:line[:character] Used with the -g argument. Name of a file to open at the specified line and optional character position.
folder Name of a folder to open. You can specify multiple folders and a new Multi-root Workspace is created.

go to line and column

Select a profile

You can launch VS Code with a specific profile via the --profile command-line interface option. You pass the name of the profile after the --profile argument and open a folder or a workspace using that profile. The command line below opens the web-sample folder with the "Web Development" profile:

code ~/projects/web-sample --profile "Web Development"

If the profile specified does not exist, a new empty profile with the given name is created.

Working with extensions

You can install and manage VS Code extensions from the command line.

Argument Description
--install-extension <extension-id> | <extension-vsix-path> Install or update an extension. Provide either the full extension name publisher.extension or the path to a VSIX file as an argument. To install a specific version provide append @{version}. For example: vscode.csharp@1.2.3. Use --force argument to avoid prompts. Use --profile argument to install for a certain profile.
--uninstall-extension <extension-id> Uninstall an extension. Provide the full extension name publisher.extension as an argument. Use --profile argument to uninstall for a certain profile.
--disable-extensions Disable all installed extensions. Extensions will still be visible in the Disabled section of the Extensions view but they will never be activated.
--list-extensions List the installed extensions. --profile argument can be used to list for a certain profile.
--show-versions Show versions of installed extensions, when using --list-extensions
--enable-proposed-api <ext> Enables proposed api features for an extension. Provide the full extension name publisher.extension as an argument.
--update-extensions Update installed extensions and exit.

install extension

Advanced CLI options

There are several CLI options that help with reproducing errors and advanced setup.

Argument Description
--extensions-dir <dir> Set the root path for extensions.
Overridden in Portable Mode by the data folder.
--user-data-dir <dir> Specifies the directory that user data is kept in, useful when running as root.
Overridden in Portable Mode by the data folder.
-s, --status Print process usage and diagnostics information.
-p, --performance Start with the Developer: Startup Performance command enabled.
--disable-gpu Disable GPU hardware acceleration.
--verbose Print verbose output (implies --wait).
--prof-startup Run CPU profiler during startup.
--upload-logs Uploads logs from current session to a secure endpoint.
Multi-root
--add <dir> Add folder(s) to the last active window for a multi-root workspace.
--remove <dir> Remove folder(s) from the last active window for a multi-root workspace.

Create remote tunnel

VS Code integrates with other remote environments to become even more powerful and flexible. Our goal is to provide a cohesive experience that allows you to manage both local and remote machines from one, unified CLI.

The Visual Studio Code Remote - Tunnels extension lets you connect to a remote machine, like a desktop PC or VM, via a secure tunnel. Tunneling securely transmits data from one network to another. You can then securely connect to that machine from anywhere, without the requirement of SSH.

We've built functionality into the code CLI that will initiate tunnels on remote machines. You can run:

code tunnel

to create a tunnel on your remote machine. You may connect to this machine through a web or desktop VS Code client.

You can review the other tunneling commands by running code tunnel -help:

Output of tunnel help CLI command

As you may need to run the CLI on a remote machine that can't install VS Code Desktop, the CLI is also available for standalone install on the VS Code download page.

For more information on Remote Tunnels, you can review the Remote Tunnels documentation.

Opening VS Code with URLs

You can also open projects and files using the platform's URL handling mechanism. Use the following URL formats to:

Open a project

vscode://file/{full path to project}/

vscode://file/c:/myProject/

Open a file

vscode://file/{full path to file}

vscode://file/c:/myProject/package.json

Open a file to line and column

vscode://file/{full path to file}:line:column

vscode://file/c:/myProject/package.json:5:10

Open the Settings Editor

vscode://settings/setting.name

vscode://settings/editor.wordWrap

You can use the URL in applications such as browsers or file explorers that can parse and redirect the URL. For example, on Windows, you could pass a vscode:// URL directly to the Windows Explorer or to the command line as start vscode://{full path to file}.

vscode url in Windows Explorer

Note: If you are using VS Code Insiders builds, the URL prefix is vscode-insiders://.

Next steps

Read on to find out about:

Common questions

'code' is not recognized as an internal or external command

Your OS cannot find the VS Code binary code on its path. The VS Code Windows and Linux installations should have installed VS Code on your path. Try uninstalling and reinstalling VS Code. If code is still not found, consult the platform-specific setup topics for Windows and Linux.

On macOS, you need to manually run the Shell Command: Install 'code' command in PATH command (available through the Command Palette ??P (Windows, Linux Ctrl+Shift+P)). Consult the macOS specific setup topic for details.

How do I get access to a command line (terminal) from within VS Code?

VS Code has an Integrated Terminal where you can run command-line tools from within VS Code.

Can I specify the settings location for VS Code in order to have a portable version?

Not directly through the command line, but VS Code has a Portable Mode, which lets you keep settings and data in the same location as your installation, for example, on a USB drive.

How do I detect when a shell was launched by VS Code?

When VS Code starts up, it may launch a shell in order to source the "shell environment" to help set up tools. This will launch an interactive login shell and fetch its environment. Depending on your shell setup, this may cause problems. For example, it may be unexpected that the shell is launched as an interactive session, which VS Code needs in order to try to align $PATH with the exact value in a user created terminal.

Whenever VS Code launches this initial shell, VS Code sets the variable VSCODE_RESOLVING_ENVIRONMENT to 1. If your shell or user scripts need to know if they are being run in the context of this shell, you can check the VSCODE_RESOLVING_ENVIRONMENT value.

什么是一桌餐 什么地睡觉 细菌性肺炎吃什么药 女人内火旺喝什么降火 走后门什么意思
12颗珠子的手串什么意思 生理期肚子疼吃什么药 蜂蜜什么时间喝最好 为什么尿有点偏红色 莲子心和什么搭配最佳治失眠
什么相关四字成语 肠梗阻有什么症状 兴渠是什么菜 女生左手食指戴戒指什么意思 死后是什么感觉
手足口病有什么危害 感冒了吃什么水果比较好 蛾子吃什么 乳头疼吃什么药 硒是什么元素
儿童中耳炎用什么药最好hcv8jop0ns0r.cn 黑马什么意思hcv7jop6ns1r.cn 貔貅和麒麟有什么区别hcv8jop2ns7r.cn 骨髓炎是什么症状bfb118.com 腋毛上有白色附着物是什么hcv9jop6ns9r.cn
糖尿病能吃什么gysmod.com 10月10日是什么星座hcv8jop2ns1r.cn 痛风挂什么科就医hcv9jop6ns3r.cn 打呼噜挂什么科hcv9jop7ns5r.cn 苹果充电口叫什么hcv8jop5ns7r.cn
酒后吐吃什么可以缓解hcv7jop6ns6r.cn 氯高是什么原因hcv8jop6ns1r.cn 甲亢是一种什么病hcv9jop0ns9r.cn 囊内可见卵黄囊是什么意思hcv8jop0ns6r.cn 是什么东西hcv8jop2ns1r.cn
什么时候容易怀孕hcv7jop4ns8r.cn 欲女是什么意思hcv8jop7ns5r.cn 便秘是什么原因hcv7jop9ns1r.cn r级电影是什么意思hcv8jop6ns4r.cn 喉咙干咳嗽是什么原因hcv8jop0ns2r.cn
百度