菠萝蜜吃多了有什么坏处| 左下眼皮跳是什么预兆| 绞股蓝和什么搭配喝减肥| 肾虚是什么原因引起的| 脂肪肝挂什么科室| cr是什么意思| 11.6号是什么星座| 心律不齐用什么药| 44是什么意思| 胃幽门螺杆菌有什么症状| 10度左右穿什么衣服合适| 红红的枫叶像什么| 吃什么雌激素会增多| 什么情况挂全科门诊| 七月出生的是什么星座| 痤疮用什么药| 什么的耳朵| 神经紊乱会出现什么症状| 左侧卵巢囊性结构什么意思| 透骨草治什么病最有效| 冒虚汗是什么原因| 对什么有好处的英文| 茯茶属于什么茶| 后脑勺痛什么原因引起的| 意有所指是什么意思| 觉悟是什么意思| 鲫鱼不能和什么一起吃| 乙木的根是什么| 刀子嘴豆腐心什么意思| 子宫位于腹部什么位置| 心电图窦性心律什么意思| 三十六计第一计是什么计| 玛卡和什么搭配壮阳效果最佳| 恨铁不成钢是什么意思| 怀孕不能吃什么药| 星星像什么| 腹水是什么| 睡醒后嘴巴苦什么原因| 心功能不全是什么意思| 青蟹什么季节吃最好| 血糖高适合吃什么主食| 诸侯国是什么意思| 早上起床吐痰带血是什么原因| 左脸上长痘痘是什么原因| 不想要孩子用什么办法最好| 忌讳是什么意思| 四川属于什么气候| 孙红雷的老婆叫什么名字| 丁亥日五行属什么| 耳毛念什么| 疱疹是什么原因长的| 传教士是什么姿势| 宫腔粘连带是什么意思| 淋巴炎吃什么药效果好| 发扬什么精神| 什么是早泄| 五月一日是什么星座| 什么药能治痛风| 地主之谊是什么意思| 沉香有什么作用与功效| 不完全骨折是什么意思| 哪些动物的尾巴有什么作用| 为什么明星不激光祛斑| 肛门瘙痒用什么药膏| 口腔异味是什么原因引起的| 喉咙痛不能吃什么东西| 正营级是什么军衔| 女团是什么意思| 高职是什么学历| 为什么蚊子不咬我| 阴道内壁是什么样的| 梨花代表什么生肖| 嘴巴臭是什么原因| 风餐露宿是什么生肖| pd-l1是什么| 狗狗拉稀吃什么药| 专班是什么意思| 白带什么味道| 见多识广是什么生肖| 头颅mri是什么检查| 海底有什么生物| 1月15号是什么星座| 24是什么生肖| 后脑勺发热是什么原因| 肝内钙化灶什么意思| 小二阳是什么意思| 湿疹吃什么食物| 送男朋友什么礼物合适| 冰箱发热是什么原因| 为什么不建议光子嫩肤| 为什么会胎停| 清江鱼又叫什么鱼| 得不到的永远在骚动什么意思| 头上长了个包挂什么科| 女人梦到地震预示什么| 代发什么意思| 恪尽职守是什么意思| 什么植物和动物最像鸡| 秋水伊人是什么意思| 草字头加弓念什么| 耳朵响是什么原因| 516是什么星座| 马鞍皮是什么皮| 里急后重吃什么药最好| videos是什么意思| 什么的哭声| a2是什么材质| 鹏字五行属什么| 枭雄的意思是什么| 办护照需要准备什么材料| 查甲亢挂什么科| 吃什么东西能养胃| 平时血压高突然变低什么原因| 什么书在书店里买不到| 女人为什么喜欢坏男人| 什么是处方药| 11月18日什么星座| 夫妻是什么意思| 鬼画符是什么意思| 办身份证需要什么| 因什么制宜| 喝中药不能吃什么食物| 头晕是什么病的前兆| 宝宝辅食虾和什么搭配| 吃什么可以软化肝脏| 喉咙痛喝什么饮料| 游走性疼痛挂什么科| 6合是什么生肖| 脚水泡痒用什么药| 尿道感染吃什么药| 幽门螺杆菌什么症状| 球蛋白的功效与作用是什么| 生殖疱疹用什么药效果好| 大量出汗是什么原因引起的| 顾影自怜什么意思| 完犊子是什么意思| 胃病可以吃什么水果| 大体重减肥做什么运动| 女累读什么| 做雾化起什么作用| 天上的星星为什么会发光| 打碎碗是什么预兆| h202阳性是什么意思| 煲排骨汤放什么材料好| 牡蛎和生蚝有什么区别| 肿瘤前期出现什么症状| 雷是什么生肖| 提踵是什么意思| ige是什么| 手指肿胀什么原因| bppv是什么病| 辰字属于五行属什么| msa是什么| 吃什么助勃药能硬| 全身出虚汗多是什么原因造成的| 咳嗽有白痰一直不好是什么原因| 鱼缸摆放什么位置最佳| 卡地亚手表什么档次| 糖尿病是什么原因造成的| 尿细菌高是什么原因| 铁皮石斛花有什么作用| 空调睡眠模式是什么意思| 刮腻子是什么意思| 房颤是什么病严重吗| 慢性胃炎用什么药效果最好| 英语四级什么时候报名| 怀孕前3个月需要注意什么| 释怀什么意思| 睡觉流鼻血是什么原因| 对口高考班是什么意思| 7个月的宝宝吃什么辅食| 早上起床喉咙有痰是什么原因| 神采什么| 独生子女证有什么用| 什么是大专| 脚二拇指比大拇指长代表什么| 火红火红的什么| 粘纤是什么材料| 为什么没有广东大学| 什么是单亲家庭| 为什么肝区隐隐作痛| 天秤女和什么座最配对| 动车与高铁有什么区别| 后背容易出汗是什么原因| 散光是什么原因导致的| 尿酸高吃什么食物好| 人彘为什么还能活着| 辅助治疗是什么意思| 梦见蛇是什么意思| 迪奥是什么意思| 前列腺增生吃什么药效果最好| 耳蜗是什么| 养尊处优的意思是什么| 什么是爱豆| 木薯粉可以做什么美食| 小肠疝气挂什么科| 初伏是什么意思| 梦见生了个女儿是什么意思| 硫磺有什么作用| 惊蛰是什么季节| 八月三号什么星座| 为什么会长口腔溃疡的原因| 尿液检查白细胞高是什么原因| 梦见雪地是什么征兆| 嘴巴里长泡是什么原因| pc材质是什么| 辟邪是什么意思| 风疹病毒抗体阳性是什么意思| 鹿几念什么| 毛血旺是什么菜| 叛逆期是什么意思| 梦见蛇代表什么| 吃什么药通气放屁最快| 同房子宫疼痛什么原因| 化疗期间吃什么最好| ch2o是什么物质| 什么是直肠炎| 什么是脑梗死| cpi下降意味着什么| 动一下就出汗是什么原因| 指标到校是什么意思| 气胸是什么病是大病吗| 右腹疼是什么原因| 小的五行属什么| 飞机为什么能飞上天| 偏头疼挂什么科室| 泡妞是什么意思啊| 九七年属什么| 小孩睡觉磨牙是什么原因引起的| ctc什么意思| hpv病毒通过什么途径传播| 吃茄子有什么好处| 糯米粉是什么粉| 上眼皮肿了是什么原因| 脂肪肝吃什么药最好| 生气胸口疼是什么原因| 什么是性上瘾| 宫颈潴留囊肿是什么意思| BLD医学上是什么意思| 肾衰透析病人吃什么好| 杨梅什么时候成熟| 太阳穴长痘痘什么原因| rh是什么血型| 男士私处瘙痒用什么药| 检查幽门螺旋杆菌挂什么科| 鳞状上皮增生什么意思| 双子座是什么时候| 手足口病用什么药| 亦或是什么意思| 背上长痘痘是什么原因| 什么是沙龙| 10.25是什么星座| 老年脑改变是什么意思| 阴道撕裂用什么药| 少将相当于什么级别| 宴字五行属什么| 肝不好看什么科| 山东特产是什么| 82年属狗是什么命| 洗头什么时间洗最好| 农历八月十三是什么星座| 幺是什么意思| 健忘是什么意思| 牛肉汤配什么菜好吃| 百度

Try to extend agent mode in VS Code!

WTCC上海站:北极星车队沃尔沃S60赛车首夺冠

百度 ”日前,习近平总书记在全国政协联组会上系统阐述了中国新型政党制度的优越性,彰显了对中国道路的充分自信。

The Visual Studio Code WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment right from VS Code. You can develop in a Linux-based environment, use Linux-specific toolchains and utilities, and run and debug your Linux-based applications all from the comfort of Windows.

The extension runs commands and other extensions directly in WSL so you can edit files located in WSL or the mounted Windows filesystem (for example /mnt/c) without worrying about pathing issues, binary compatibility, or other cross-OS challenges. The extension will install VS Code Server inside WSL; the server is independent of any existing VS Code installation in WSL.

WSL Architecture

This lets VS Code provide a local-quality development experience — including full IntelliSense (completions), code navigation, and debugging — regardless of where your code is hosted.

Getting started

Note: After reviewing this topic, you can get started with the introductory WSL tutorial.

Installation

To get started, you need to:

  1. Install the Windows Subsystem for Linux along with your preferred Linux distribution.

    Note: WSL 1 does have some known limitations for certain types of development. Also, extensions installed in Alpine Linux may not work due to glibc dependencies in native source code inside the extension. See the Remote Development and Linux article for details.

  2. Install Visual Studio Code on the Windows side (not in WSL).

    Note: When prompted to Select Additional Tasks during installation, be sure to check the Add to PATH option so you can easily open a folder in WSL using the code command.

  3. Install the WSL extension. If you plan to work with other remote extensions in VS Code, you may choose to install the Remote Development extension pack.

Open a remote folder or workspace

From the WSL terminal

Opening a folder inside the Windows Subsystem for Linux in VS Code is very similar to opening up a Windows folder from the command prompt or PowerShell.

  1. Open a WSL terminal window (using the start menu item or by typing wsl from a command prompt / PowerShell).

  2. Navigate to a folder you'd like to open in VS Code (including, but not limited to, Windows filesystem mounts like /mnt/c)

  3. Type code . in the terminal. When doing this for the first time, you should see VS Code fetching components needed to run in WSL. This should only take a short while, and is only needed once.

    Note: If this command does not work, you may need to restart your terminal or you may not have added VS Code to your path when it was installed.

  4. After a moment, a new VS Code window will appear, and you'll see a notification that VS Code is opening the folder in WSL.

    WSL Starting notification

    VS Code will now continue to configure itself in WSL and keep you up to date as it makes progress.

  5. Once finished, you now see a WSL indicator in the bottom left corner, and you'll be able to use VS Code as you would normally!

    WSL Status Bar Item

That's it! Any VS Code operations you perform in this window will be executed in the WSL environment, everything from editing and file operations, to debugging, using terminals, and more.

From VS Code

Alternatively, you can open a WSL window directly from VS Code:

  1. Start VS Code.
  2. Press F1, select WSL: Connect to WSL for the default distro or WSL: Connect to WSL using Distro for a specific distro.
  3. Use the File menu to open your folder.

If you already have a folder open, you can also use the WSL: Reopen Folder in WSL command. You will be prompted which distro to use.

If you are in a WSL window and want to open the current input in a local window, use WSL: Reopen in Windows.

From the Windows command prompt

To open a WSL window directly from a Windows prompt use the --remote command line parameter:

code --remote wsl+<distro name> <path in WSL>

for example: code --remote wsl+Ubuntu /home/jim/projects/c

We need to do some guessing on whether the input path is a file or a folder. If it has a file extension, it is considered a file.

To force that a folder is opened, add slash to the path or use:

code --folder-uri vscode-remote://wsl+Ubuntu/home/ubuntu/folder.with.dot

To force that a file is opened add --goto or use:

code --file-uri vscode-remote://wsl+Ubuntu/home/ubuntu/fileWithoutExtension

Working with Git

If you are working with the same repository in WSL and Windows, be sure to set up consistent line endings. See tips and tricks for details.

You can also avoid passwords by configuring WSL to use the Windows Git credential manager. See tips and tricks for details.

Managing extensions

VS Code runs extensions in one of two places: locally on the UI / client side, or in WSL. While extensions that affect the VS Code UI, like themes and snippets, are installed locally, most extensions will reside inside WSL.

If you install an extension from the Extensions view, it will automatically be installed in the correct location. Once installed, you can tell where an extension is installed based on the category grouping. There will be Local - Installed category and one for WSL.

Workspace Extension Category

Local Extension Category

Note: If you are an extension author and your extension is not working properly or installs in the wrong place, see Supporting Remote Development for details.

Local extensions that actually need to run remotely will appear dimmed and disabled in the Local - Installed category. Select Install to install an extension on your remote host.

Disabled Extensions w/Install Button

You can also install all locally installed extensions inside WSL by going to the Extensions view and selecting Install Local Extensions in WSL: {Name} using the cloud button at the right of the Local - Installed title bar. This will display a dropdown where you can select which locally installed extensions to install in your WSL instance.

Install all extensions

Opening a terminal in WSL

Opening a terminal in WSL from VS Code is simple. Once folder is opened in WSL, any terminal window you open in VS Code (Terminal > New Terminal) will automatically run in WSL rather than locally.

You can also use the code command line from this same terminal window to perform a number of operations such as opening a new file or folder in WSL. Type code --help to see what options are available from the command line.

Using the code CLI

Debugging in WSL

Once you've opened a folder in WSL, you can use VS Code's debugger in the same way you would when running the application locally. For example, if you select a launch configuration in launch.json and start debugging (F5), the application will start on remote host and attach the debugger to it.

See the debugging documentation for details on configuring VS Code's debugging features in .vscode/launch.json.

WSL specific settings

VS Code's local user settings are also reused when you have opened a folder in WSL. While this keeps your user experience consistent, you may want to vary some of these settings between your local machine and WSL. Fortunately, once you have connected to WSL, you can also set WSL specific settings by running the Preferences: Open Remote Settings command from the Command Palette (F1) or by selecting the Remote tab in the Settings editor. These will override any local settings you have in place whenever you open a folder in WSL.

Advanced: Environment setup script

When VS Code Remote is started in WSL, no shell startup scripts are run. This was done to avoid issues with startup scripts that are tuned for shells. If you want to run additional commands or modify the environment this can be done in a setup script ~/.vscode-server/server-env-setup (Insiders: ~/.vscode-server-insiders/server-env-setup). If present, the script is processed before the server is started.

The script needs to be a valid Bourne shell script. Be aware that an invalid script will prevent the server from starting up. If you end up with a script that prevents the server from starting, you will have to use a regular WSL shell and delete or rename the setup script.

Check the WSL log (WSL: Show Log) for output and errors.

Advanced: Opening a WSL 2 folder in a container

If you are using WSL 2 and Docker Desktop's WSL 2 back-end, you can use the Dev Containers extension to work with source code stored inside WSL! Just follow these steps:

  1. If you have not already, install and setup Docker Desktop's WSL 2 support.

    Tip: Go to Settings > Resources > WSL Integration and enable Docker integration with the WSL distribution you will be using.

  2. If you have not already, install the Dev Containers extension along with the WSL extension.

  3. Next, open your source code folder in WSL as you would normally.

  4. Once your folder is open in WSL, select Dev Containers: Reopen in Container from the Command Palette (F1).

  5. If the folder does not have a .devcontainer/devcontainer.json file in it, you'll be asked to pick a starting point from a filterable list or an existing Dockerfile or Docker Compose file (if one exists).

    Select a node dev container definition

  6. The VS Code window (instance) will reload and start building the dev container. A progress notification provides status updates.

    Dev Container Progress Notification

  7. After the build completes, VS Code will automatically connect to the container. You can now work with the your source code from inside the container.

See the Dev Containers documentation for more information.

Known limitations

This section contains a list of common know issues with WSL. The intent is not to provide a complete list of issues but to highlight some of the common problems seen with WSL.

See here for a list of active issues related to WSL.

I see EACCES: permission denied error trying to rename a folder in the open workspace in WSL 1

That's a known problem with the WSL file system implementation (Microsoft/WSL#3395, Microsoft/WSL#1956) caused by the file watcher active by VSCode. The issue will only be fixed in WSL 2.

To avoid the issue, set remote.WSL.fileWatcher.polling to true. However, polling based file watching has a performance impact for large workspaces.

For large workspace you want to increase the polling interval: remote.WSL.fileWatcher.pollingInterval and control the folders that are watched: files.watcherExclude.

WSL 2 does not have that file watcher problem is also not affected by the new setting.

Golang in WSL 1

Issue Existing issues
Delve debugger doesn't work under WSL go-delve/delve#810, Microsoft/vscode-go#926

Node.js in WSL 1

Issue Existing issues
NodeJS Error: spawn EACCES (different variants of this error) Microsoft/WSL#3886
Webpack HMR not working Microsoft/WSL#2709
Firebase via node unusably slow only on WSL Microsoft/WSL#2657

Git limitations

If you clone a Git repository using SSH and your SSH key has a passphrase, VS Code's pull and sync features may hang when running remotely. Either use an SSH key without a passphrase, clone using HTTPS, or run git push from the command line to work around the issue.

Container Tools Extension limitations

While the Container Tools extension can run both remotely and locally, if it is already installed locally, you will be unable to install on a remote SSH host without first uninstalling it locally. We will address this problem in a future VS Code release.

Extension limitations

Many extensions will work in WSL without modification. However, in some cases, certain features may require changes. If you run into an extension issue, see here for a summary of common problems and solutions that you can mention to the extension author when reporting the issue.

In addition, some extensions installed in an WSL when using an Alpine Linux-based distribution may not work due to glibc dependencies in native code inside the extension. See the Remote Development with Linux article for details.

Common questions

Why am I asked to change the default distro?

When using WSL: Connect to WSL using Distro and running on WSL older than Windows 10, May 2019 Update (version 1903) you will be asked to switch the default distribution as the WSL command can only work on the default distro as it does not support the -d option yet.

You can always manually switch the default distro by using wslconfig.exe.

For example:

wslconfig /setdefault Ubuntu

You can see which distributions you have installed using:

wslconfig /l

I'm seeing an error about a missing library or dependency

Some extensions rely on libraries not found in the vanilla install of certain WSL Linux distributions. You can add additional libraries into your Linux distribution by using its package manager. For Ubuntu and Debian based distributions, run sudo apt-get install <package> to install the needed libraries. Check the documentation for your extension or the runtime that is mentioned for additional installation details.

What are the connectivity requirements for the WSL extension?

The WSL extension and VS Code Server require outbound HTTPS (port 443) connectivity to:

  • update.code.visualstudio.com
  • vscode.download.prss.microsoft.com
  • marketplace.visualstudio.com
  • *.gallerycdn.vsassets.io (Azure CDN)

Some extensions (like C#) download secondary dependencies from download.microsoft.com or download.visualstudio.microsoft.com. Others (like Visual Studio Live Share) may have additional connectivity requirements. Consult the extension's documentation for details if you run into trouble.

All other communication between the server and the VS Code client is accomplished through an random local TCP port. You can find a list of locations VS Code itself needs access to in the network connections article.

I'm behind a proxy and have connectivity issues

Proxy settings might be missing on either the Windows or the WSL side.

When a remote window is opened out of VSCode, the WSL extension tries to download the VSCode server on the Windows side. It therefore uses the Window side proxy configuration:

When the remote VSCode is started from a WSL terminal, the download is done using wget in the WSL distro. Proxy settings can be configured in:

Once the server is up and running the proxy settings on the Remote tab are used.

Can I force an extension to run locally / remotely ?

Extensions are typically designed and tested to either run locally or remotely, not both. However, if an extension supports it, you can force it to run in a particular location in your settings.json file.

For example, the setting below will force the Container Tools extension to run locally and Remote - SSH: Editing Configuration Files extension to run remotely instead of their defaults:

"remote.extensionKind": {
    "ms-azuretools.vscode-containers": [ "ui" ],
    "ms-vscode-remote.remote-ssh-edit": [ "workspace" ]
}

A value of "ui" instead of "workspace" will force the extension to run on the local UI/client side instead. Typically, this should only be used for testing unless otherwise noted in the extension's documentation since it can break extensions. See the article on Supporting Remote Development for details.

As an extension author, what do I need to do?

The VS Code extension API abstracts away local/remote details so most extensions will work without modification. However, given extensions can use any node module or runtime they want, there are situations where adjustments may need to be made. We recommend you test your extension to be sure that no updates are required. See Supporting Remote Development for details.

Questions or feedback

hpv是什么 暖味是什么意思 孕妇d2聚体高是什么原因 1970年属什么生肖 梦见黄瓜是什么意思
草莓印是什么意思 养乌龟有什么好处 吃三七粉不能吃什么 奔走相告的走是什么意思 投诚是什么意思
什么叫血糖 ed是什么意思 多此一举是什么意思 孩子脚后跟疼是什么原因 桂花什么颜色
鼻炎吃什么药 做梦房子倒塌什么预兆 芋圆用什么粉做的 宫颈癌前期有什么症状 缺二氧化碳是什么症状
家财万贯是什么动物hcv8jop1ns7r.cn 苯醚甲环唑防治什么病hcv8jop2ns5r.cn 毛囊炎是什么引起的hcv9jop3ns9r.cn 2035年属什么生肖hcv9jop1ns1r.cn 鬼打墙是什么意思hcv7jop7ns1r.cn
肯定是什么意思hcv9jop4ns2r.cn 豆沫是什么做的gangsutong.com 经常按摩头皮有什么好处hcv8jop3ns1r.cn 女人左眼跳是什么意思hcv8jop9ns2r.cn 脾虚湿蕴证是什么意思hcv9jop7ns3r.cn
鹿加几念什么0735v.com 冷暖自知是什么意思hcv8jop9ns9r.cn ori是什么意思hcv9jop1ns0r.cn 醋有什么功效和作用hcv9jop2ns6r.cn 被蚂蚁咬了用什么药hcv9jop6ns3r.cn
i.t品牌什么档次hcv9jop2ns7r.cn 肝是什么器官hlguo.com 肠易激综合征是什么病hcv9jop3ns3r.cn 加百列是什么天使hcv7jop7ns4r.cn 性激素是什么意思hcv8jop1ns1r.cn
百度