Visual studio code - closes window after launching - visual-studio-code

I have problems with launching my VSC after windows update. The window closes just after lauching. I have installed new version of vsc 1.73.1 and I have deleted the directory with extensions but it haven't helped. I use win 10. Any suggestions?

Related

Everytime I try to change the default version of my terminal, VSCode opens up instead

When i am trying to change the default terminal on my windows 11 laptop, the terminal opens up VSCode for some reason. I open the windows terminal, hit settings then VSCode opens up with this settings.json page:
VSCode settings.json
But the thing is I want to have the terminal settings open up, not VSCode. I am trying to change my default terminal from windows terminal to Ubuntu.
What version of Windows Terminal are you using? The settings UI for the Terminal was added in 1.7 (IIRC), and I believe the version that originally shipped with Windows 11 was 1.6. Before 1.7, clicking on "settings" would open the settings.json file in whatever your default .json editor was.
Future readers: If you're hitting this too, make sure to update your Terminal from the Store. Anything >=1.7 should have the Settings UI. At the time of this post, the latest Stable version in the store was 1.12.

Visual Studio code after Update to 1.60.0 Integrated Terminal Issue (CWD)

After an update to version 1.60.0 the integrated terminal that I use by default (WSL Ubuntu 20) gives problems.
If I set WSL as the default Terminal, the right terminal (WSL Ubuntu) is started only if I click on "Open new Terminal".
If I close VSL and reopen it, a power shell is automatically launched.
If I use the function on an file: "open in integrated Terminal" a power shell is always launched, VSL seems to ignore the CWD parameter:
terminal.integrated.cwd ":" $ {fileDirname} for WSL-Ubuntu.
This is due to a regression introduced in 1.60.0 and fixed in 1.60.1, which has just been released (see the updated release note).
So you just have to update VS Code to the latest version.

Not able to open VS Code from Terminal in my MacBook BigSur11.3.1

Good day community. I have installed VS Code in my MacBook Air M1 chip running on BigSur 11.3.1 but whenever I set the code command in PATH (using Command+Shift+P) it only appears to be working for current session and doesn't work if I restart VSCode. I have to set the code command in PATH again. Please help me in configuring code command permanently so that i can open VSCode from any directory whenever I want. Thanks
I think I have got the solution. After installing VSCode in your Mac (which will be in download folder) move VS Studio Code.app file to Application Folder and then again install the code command in PATH from VSCode(using Command+Shift+P) and thats it.

How can I fix the "segmentation fault" error in Visual Studio Code's terminal?

On Windows 10, I have Visual Studio Code installed.
When I open the terminal (Git Bash) and type less-watch-compiler, I get the error:
Segmentation fault
But if I go to the Git Bash terminal itself (outside Visual Studio Code) and type less-watch-compiler, the command works.
How can I fix this problem?
I reinstalled Git for Windows, but it didn't help.
I have the latest version of Visual Studio Code (1.36.1)
When I use the "cmd" editor within Visual Studio Code, it works fine as well.
Not sure if it's the same problem but I was also getting segmentation fault errors running VSCode with WSL.
What fixed it for me was:
rm -rf ~/.vscode-server
The next time I tried the command, VScode downloaded the necessary files and everything worked again.

VSCode Update 1.13.1 broke some keyboard bindings, How do I put them back?

My VSCode just updated to 1.13.1 and now I can no longer use the Shift+Alt keyboard shortcut to initiate multi-line editing. I was using this feature regularly - until it just broke with the 1.13.1 update.
At first I thought it was a keyboard or operating system fault. However, I can still use those shortcut keys in Visual Studio 2017 side by side with VSCode. It works in Visual Studio 2017 and does not work any more in VSCode. I also tried in both Windows 10 and Windows 7.
How do I restore the VSCode keyboard bindings to their Visual Studio equivalents?
Check if you can add to your VSCode plugins the "Visual Studio Keymap" one:
This extension ports popular Visual Studio keyboard shortcuts to Visual Studio Code.
After installing the extension and restarting VS Code your favorite keyboard shortcuts from Visual Studio are now available.
You can see the keyboard shortcuts in rebornix/vscode-vs-keybindings/package.json.