New answers tagged

1

Folks, I will go ahead and answer my own question. Each developer's environment is different. I did all these things to fix it, Our corporate laptop has Disk encryption Bitlocker. I disabled this. Cleaned up the $HOME/.vscode-server in WSL Ubuntu. I was using Remote WSL in Windows vscode. I reinstalled all extensions. It's easy if you have MS account to ...


1

I was able to get this running using preLaunchTask. Now both the debugger and the live server start with one click. Here are my .vscode folder config files. launch.json: { "version": "0.2.0", "configurations": [ { "name": "Launch", "port": 9222, &...


1

In VS Code, clicking once on a file opens it in a temporary tab. The idea is that if you are looking into multiple files while searching for something, you can do it this way without opening all of them. If you want to open a file in a new tab that persists until closed manually, double click on the file. To persist a tab that was previously created as a ...


0

I found this https://stackoverflow.com/questions/54954337/is-it-possible-to-use-yarn-pnp-with-typescript-vscode The critical step that finally got VSCode configured was setting the workspace version to 3.9.7-pnpify. See bottom right of VSCode: However, along the way in trying to solve it, I ran the two commands noted above, and yarn add @yarnpkg/pnpify ...


0

The problem is not VS code because you're actually looking at your terminal. You simply have to edit the settings that define how your terminal appears. If you're on MacOS Catalina, then you can edit the ~/.zshrc file. This should be the code that you need- parse_git_branch() { git branch 2> /dev/null | sed -n -e 's/^\* \(.*\)/[\1]/p' } COLOR_DEF=$'\...


1

In my case (VS Code 1.47.2), the shortcuts Run Selection in Python Terminal and Run Selection in Python Interactive Windows are in conflict with each other (probably messed up by myself a while ago). The resolution is straightforward: Go to File -> Preferences -> Keyboard Shortcuts -> Type run selection. In the result list, change the keybinding ...


0

This is certainly caused by your antivirus not liking the VS Code installation. One known example of such an antivirus is SentinelOne. You would need to disable the antivirus while you are installing VS code, but there is no guarantee that it will not later on decide to remove some file of VS Code. If you are not obliged to use this antivirus, perhaps you ...


-1

so i think this work but you can go to the file where your vscode is installed or just right click the app and open file location and then you will see an application called unins000 just click that and uninstall it :).


2

In the latest VS Code (v1.47): The detected file type is printed on the lower bar of the window, and by default it'll likely say Plain Text for new, unsaved, files. Screenshot of lower-right menu-bar Click on Plain Text, that'll bring up a box where you can select other formats VS Code knows about. Select the one you want or start typing what you want in the ...


0

There's no need to edit the registry. Run Command Prompt as Administrator, and then use assoc and ftype: assoc .txt=txtfile && ftype txtfile="%LocalAppData%\Programs\Microsoft VS Code\Code.exe" "%1"


1

When you show the Source Control tab (click the button on the left in the screenshot), VS Code shows you all the git repos for your open folders: Here I have two repos (hellocli3 and KrakenRepo). By clicking the > to expand the repo you want, you then get to use VS Code's git features for that repo. The features can be found by hovering over the icons to ...


1

As of July 14th, 2020 there is no built-in way to make the tabs span multiple rows. There is a discussion within the VS Code github repository about adding this feature here: https://github.com/microsoft/vscode/issues/70413


1

I don't think that there any good solutions for you problem. I suggest to options: Set auto saving for your files Make all badges transparent "workbench.colorCustomizations": { "activityBarBadge.background": "#0000", "activityBarBadge.foreground": "#0000", }


0

In order to modify file in C:\Program Files\ application needs to have administrator privileges. Go to installed directory, right click on Code.exe, "Properties", "Compatibility", check "Run this program as an administrator".


1

I had the same problem, and found a step-by-step guide from Microsoft for setting up an internal switch with NAT, and connecting VMs to it. It consists of the following steps in PowerShell New-VMSwitch -SwitchName "SwitchName" -SwitchType Internal Get-NetAdapter // (note down ifIndex of the newly created switch as INDEX) New-NetIPAddress -...


1

No, you cannot. You can open multiple folders in a single workspace, but you can only have one workspace open at a time in a given VS Code window. A bug report for this from 2 years ago was closed: https://github.com/Microsoft/vscode/issues/43188


Top 50 recent answers are included