It seems that the issues you're experiencing with Microsoft VS Code could be related to corrupted core files or cached data, especially if the application shuts down unexpectedly after updates or reinstalls. Here are a few steps you can take to troubleshoot and potentially resolve the issue:
- Clear the Cache: Sometimes, cached data can cause problems. Try clearing the cache for VS Code. You can do this by deleting the contents of the
%APPDATA%/Codedirectory (make sure to back up any important settings or extensions first). - Check for Extensions: Disable all extensions to see if one of them is causing the issue. You can do this by launching VS Code with the
--disable-extensionsflag from the command line. - Run as Administrator: Sometimes, running the application with elevated permissions can resolve issues. Right-click on the VS Code icon and select "Run as administrator".
- Check for Conflicting Software: Ensure that there are no other applications or services that might be conflicting with VS Code. Antivirus software, in particular, can sometimes interfere with application performance.
- Update Graphics Drivers: If the issue persists, check if your graphics drivers are up to date, as outdated drivers can cause instability in applications.
- Review Logs: Check the logs for any error messages that might provide more insight into why VS Code is crashing. You can find the logs in the
%APPDATA%/Code/logsdirectory.
If these steps do not resolve the issue, consider reaching out to Microsoft Support or checking the Visual Studio Developer Community for more specific guidance related to your situation.
References:
- Repair Visual Studio
[Warning: Long Post - I KNOW - I'm Sorry, I'm at your MERCY!]
>> Should I uninstall it and all addons and do a fresh install and then
what are the top addons for coding in the following languages:
HTML5 , CSS3, JS, working on Python, and would like to learn some
back end like PHP (but i'm also having issues with xAmpp and MySQL)
so I'm putting a pin in backend for the most part except maybe PHP
if anyone wants to talk about that later.
>> For now, the most important part is helping me fix my VSC program
so I can work on HTML/CSS/JS/Python and some other languages.
Some of which I've learned can be used to create phone Apps which
I might be interested in but I'd need advice on which is best as well
as YouTube channels.
I used to have a pretty top shelf S+ Tier list of coding channels but
i've since lost them when I made 2 new accounts and can NOT
remember the other one for the life of me... so please help me.
>> I'm having all kinds of errors inside VSCode and idk why and when
I hit the cogwheel / settings it doesn't tell me what I need to fix.
same thing with other things. Put it this way, if there's an error, then
I flat out can NOT fix it, no matter what... be it in the code, or terminal.
>> Lastly[1], when it comes to uploading a completely webdev (be it a
browser game, potential mock-mock up for website ideas, a log-in
and log-out form, so on and so forth; I have a ton of ideas but none
seem to be working like they should be... so if someone could do
me a SUPER solid and tell me if I should just go ahead and re-install
a fresh VSCode Text Editor? and if I go that route, can someone
PLEASE make a list of TOP / BEST addons for coding.
Such as language emmetts / shorthand codes where typing somethin
as simple as " HTML:5 " it'll automatically post a ton of important info
from <HTML> to a lot in the <Title> and <Head> as well as being able
to link JS src='./js/app.js or whatever.js // same with .css in folder
running everyting on index.html as homepage.
I wish I had a proper example but I can't find my Plural Sight clone
that i made a while ago that had the cool box of code that moves the
resolution automatically from the size of Cell phone to Tablets of all
sizes, to PC's and Macs of all sizes and so on (I forgot that line of code
or rather few lines, it's not a lot).
>> But my main Extension downloads in VSCode allow for specific languages
to auto complete while I'm typing, different colors to help read it, and
it helps me TON. Then there's intellisense (idk what it means/does) and
would love any and all help possible.
It's been a while since I was coding every day... I remember starting all
the way back in Windows XP where you could drag a website into
Windows Excell and it would show you the code from top to bottom.
I'd recreate it using that website html cheat sheet with the monkey logo.
And create all kinds of websites. Also helped during the MySpace days,
angelfire days (for D&D groups in MSN Chats / turned Communities)
and I'd send one link to the actual group and another link to someone I
absolutely hated.
There was / is a SINGLE line of JavaScript that opens a small window/box
sort of like a [Okay][Cancel] box, small, and it grey'd out the minimize,
maximize, and close options in the top right.
The chat in the middle of box would have something funny/trollish/etc
Then once you picked Okay or Cancel/Close it would pop up again with
another box. It could be on repeat indefinitely or you could make it say
different things like a countdown from 100 > 1 and once you got to 0
it would start over. I forgot that and wish I could find it again lol.
Other than HTM5, CS3, JS, Python, I also want to learn C++ but with both
C++ and Python you need to do certain things with your computer in order
for one or the other (both basically) to compile and run.
I was using a different program for both C++ and Python (PyCharm) and
something else for C++ , something from the Purple version of VSC and
even then, I couldn't get them to run. Whereas, in VSC blue, you can press
the "Play Icon" and if your code is right, it runs.
>> My problem right now with Python and I might as well include C++ too
is the import command. For example, I've been trying to make somethin
SUPER SIMPLE as Snake, Tetris, etc. and "import.PyGames" doesn''t work....
idk why.
Idk how to uninstall python version from my windows or which version to
download and then download WHERE since it seems to matter. I'm trying
to stick SOLELY VSCode text editor / compiler since it works for ALL languages
I've used thus far in life... I've gotten the back end to work in both PHP and
MySQL but then I didn't like MySQL at all. However, using PHP is alright,
I don't mind the coding in PHP however, I'd like a few peoples' input on their
preferred backend for Username/Password or E-mail/pw + Username for
when I DO finish certain websites (be it for me or requested) - it would be
nice to know which database to use.
~ Speaking of databases, I'm having trouble using them in general...
~ Especially when it comes to C++ and Python... I can code entire games
~ Yet for whatever reason, " import.PyGames " never works for anything...
>> I also have Git Bash for Terminal, but VSC uses the regular windows Terminal
and I've completely forgotten the process of uploading a project onto github.
I know it starts like
-git init
-git somethin --global user.name
^ -user.email
^ -m "Blah blah blah about program" or "I'm so and so at github.com/ namehere"
~~~~Anyway, can someone also post a STEP BY STEP guide on how to upload to github?
>> Can someone basically give me a run down for those using VSC
The best Extensions to use for shortcuts like i mentioned how HTML:5 then tab or
whatever, builds a boilerplate for HTML. there's a few other kinds that build lesser.
Then Extensions that change the color of text to match certain commands
Ex: In my app.js var, ctx, if/else, return, etc are all different colors.
My friend wants me to learn Solidify but IDK the FIRST thing about it, if you do,
can you please tell me a little about it?
-------------------------------------------------------------------------------------------------------------------------------------
Current Extensions:
- Android
- Android iOS Emulator (idk how to use it)
- autoDocstring - Python Docstring Generator (idk how to use/what its for, just got recommended)
- autopep8 (a python ext - as you can see i was trying HARD to get into python for a while)
- axe Accessibility Linter
- Better Comments
- Code Runner
- Command List (forgot what this was for)
- Computer (also forgot what this is for)
- CS-Script (and forgot this one)
- Djaneiro - Django Snippets ( i WAS gonna learn Django but never got to it, so clueless)
- Django (As I just stated, I have no idea what Django is used for or why)
- Docker
- ETHOver (think this had somethin to do with blockchain but this was 4+ years ago)
- exe Runner
- Flake8 (forgot what this was for)
- flask-snippets (forgot what this is for)
- Graphviz Interacive Preview (no clue what this is, i don't remember even installin it)
- HTML CSS Support
- HTML Play
- HTML/CSS/JavaScript Snippets (love this one)
- inline Bookmarks (forgot what it does/what its for)
- intelliCode (forgot what its for/does)
- intelliCode API Usage Examples (same as intelliCode by itself)
- IntellPHP - AI autocomplete for PHP (i assume this is like emmit / linter / auto fills in code names)
- isort (another python ext that idk anything about)
- JavaScript (ES6) code snippets (i'm sure this gives me the drop down menu of js codes, i like)
- Jinja (i'm reading it but have no clue what its for or what it does)
- JSON Tools (I know VSC uses JSON files as its internal options/settings but i forgot how to edit them)
- Jupyter (no clue what this is for)
- Jupyter Cell Tags (forgot entirely what Jupyter is and all its extensions listed)
- Jupyter Notebook Renderers ( read above )
- Jupyter Slide Show (what is thisand why would I download so much of it... same with Django)
- Linter (love this one)
- Live Server (REALLY love this one)
- Microsoft Edge Tolls for VS Code (i semi like it,but haven't used it since I've gotten this PC)
- PHP (doesn't seem to work on this pc)
- PHP Profiler (no clue what it does)
- PlantUML (no clue what it does)
- pyGame Snippets (i can only guess what it does since I know what snippets are but pygame never worked when i tried coding "import pygame" to create a version of snake...)
- Pylane (no clue)
- Python (Inllisense(pylance) linting debugging multi threaded remote/jupyter notebooks formatting)
- Python (same as above but more + refratoring , unit tests and more??)
- Python Environment Manager (no clue, keep sayin 4+ years since I tried anything python)
>> plus I think I preferred a different Text editor for Python. Sublime Text 3 or something else.
- Python Extended (no clue)
- Python Extension Pack (no clue)
- Python Extention Pack (2nd one but no clue - it does other stuff)
- Python for VSCode (but its striked through so I'm assumin that means its dead?)
- PythonIndent (??)
- Python must-have Essentials (apparently it didn't help)
- Python Path ( ??)
- Python Preview (striked out, so ???)
- Python Snippets (guessing it works like html/ccs/js, when you type somethin close it fills in rest of gives drop down menu of options, which i love those extensions. i thought that was linter or something else)
- Python test Explorer for VSC - never worked for me
- Ruby (don't recall what this was supposed to be for)
- Sass/Less/Stylus/Pug/Jade/Typescript/ JavaScript Compile Hero Pro (no clue what this does or for)
- Solidity (my friend told me to get into this ASAP for making module code for a prototype his company was making, i'm sure it can be applied elsewhere and would like to know more if anyone knows)
- Solidity Contract Flattener (no clue, since I was never able to learn Solidity or Sass)
- Solidity Debugger (can't really say much since its a debugger lol)
- Solidity Extended (extended of wtf is this! lolol)
- Solidity Language & Themes (only) - so... no clue what this is other than themes for solidity.
- Solidity Visual Developer (no clue what this is.. maybe format for VSCode?!)
- Test Adapter Converter (no clue)
- Test Explorer UI (no clue)
- VSCode Ruby (struck through so I guess its dead in the water)
---------------------------------------------------------------------------------------------------------------------------------
Finally, when I was installing some of these extensions and some other things for coding, something happened to where I can't find certain programs that I KNOW are on my PC and its forcing me to find them via run cmds and so on... what in the world could've caused them?
Making the Python folder?
Maybe the special PHP folder required for using it and coding the backend with xAmpp??
or perhaps it was the specific Windows 10 ISO i downloaded that gave me a bug since the ISO itself never worked. Only ones (ISOs) that worked are Kali Linux and Ubuntu.. never could get windows ones to work.... frustrating. I think I uninstalled my VMWare because of that but not 100%
At any rate, what I'm mainly looking for in terms of help is basically easier than my post suggests
As other posts have suggested a "TL;DR" section, here's that -
-
Should I do a refresh re-installation of VSCode Text Editor from the ground up?
-
If so or if not - which extensions should I get rid of and also in turn, which extensions
should I get that are 100% important to use for full stack web development? mainly focusing on front end currently and will come back to back end later. -
Kindly explain a step-by-step guide on how to use VSCode's terminal to use git commands to upload project onto github under my name. since I've completely forgotten and when I tried to follow youtube, it did NOT work at all and idk why.
-
Your thoughts on what I should do regarding front end languages/extensions/projects
-
Lastly, any youtube channels that help teach big time (I know quite a few but I've lost MOST of them) as well as any online education websites that claim that if you take their tests and pass their online exam you get to take their online courses for free until you complete the online 2 year program and then they help you find a job so they can take a % of your pay until the school debt is paid off?
I was doing Lambda online however they've changed their mind and that's SUS to me, as well as the fact their video teaching vs their quizzes /tests are SO DRASTICALLY DIFFERENT, that you have to essentially get lucky on WTF they're asking you to code / fix in the code / etc...
Microsoft VS Code Application Issues
How can I see "problems" in VS Code code for all files- not just the ones opened - Stack Overflow
Disappointment with the Latest VSCode Update
Any reason why VS Code is showing problems in files with GUIDs for names that don't actually seem to exist?
Videos
It seems that the issues you're experiencing with Microsoft VS Code could be related to corrupted core files or cached data, especially if the application shuts down unexpectedly after updates or reinstalls. Here are a few steps you can take to troubleshoot and potentially resolve the issue:
- Clear the Cache: Sometimes, cached data can cause problems. Try clearing the cache for VS Code. You can do this by deleting the contents of the
%APPDATA%/Codedirectory (make sure to back up any important settings or extensions first). - Check for Extensions: Disable all extensions to see if one of them is causing the issue. You can do this by launching VS Code with the
--disable-extensionsflag from the command line. - Run as Administrator: Sometimes, running the application with elevated permissions can resolve issues. Right-click on the VS Code icon and select "Run as administrator".
- Check for Conflicting Software: Ensure that there are no other applications or services that might be conflicting with VS Code. Antivirus software, in particular, can sometimes interfere with application performance.
- Update Graphics Drivers: If the issue persists, check if your graphics drivers are up to date, as outdated drivers can cause instability in applications.
- Review Logs: Check the logs for any error messages that might provide more insight into why VS Code is crashing. You can find the logs in the
%APPDATA%/Code/logsdirectory.
If these steps do not resolve the issue, consider reaching out to Microsoft Support or checking the Visual Studio Developer Community for more specific guidance related to your situation.
References:
- Repair Visual Studio
Thanks for reaching out.
This issue is commonly caused by a failed or incomplete VS Code update, where corrupted user. cache or settings remain even after reinstalling.
A normal reinstall does not remove user-level data, so the problem keeps coming back. Please try a clean reset:
- Uninstall VS Code from Apps & Features.
- Manually delete these folders (if they exist):
-
%APPDATA%\Code-
%LOCALAPPDATA%\Programs\Microsoft VS Code-
%USERPROFILE%\.vscode
- Restart the system.
- Download and install the latest stable VS Code from the official site.
-
-
-
- Launch VS Code without extensions once:
code --disable-extensions
If VS Code opens successfully, the issue was caused by corrupted cache or an extension. You can then re‑enable extensions one by one to identify the problematic one.
If the issue still persists after a clean reset, please report it on the VS Code GitHub repository with logs from %APPDATA%\Code\logs, as this may be a recent update regression.
Let us know if the issue persists after following these steps. I’ll be happy to assist further if needed. If the issue has been resolved, Kindly mark the provided solution as "Accept Answer", so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
I fixed this issue for typescript using the following settings in vscode settings.json file
{
"typescript.validate.enable": true,
"typescript.tsserver.experimental.enableProjectDiagnostics": true
}
You can see here that this issue is specific to lsp server and not vscode. So, please find language specific vscode settings if you are not using typescript.
I'm not aware of there being a extension-agnostic solution to this. My understanding is that problem contribution behaviour is up to the contributing extension. Pretty sure the related API things are under the name "diagnostic". Ex. see the Diagnostic type and the "Provide Diagnostics" extension development docs.
You can consult your extension's documentation or filter the settings it contributes to see if it provides a setting to configure this behaviour, such as the builtin TypeScript extension has (see How to make Visual Studio Code check entire project for errors?). If there is no such setting, you can go ask the maintainers of the extension of interest about it. If you do, first search their issue tracker first to see if it's already been raised before (Ex. for cSpell, see How to run VSCode Code Spell Checker extension on an entire folder?/).
Or you can ask a question here on SO about a specific extension. Again, make sure to search first. There might already be one for the extension you're interested in, such as the TypeScript and cSpell ones I linked above.
My setup is using VS Code to connect to a remote Linux machine that has Docker installed, and then using devcontainers on that machine via the SSH connection. I'm working on a React frontend project. I have GitHub Copilot installed as well as appropriate extensions for React and so on.
I recently noticed I started seeing files appear in the "Problems" tab. The files appear to be small snippets of previous versions of my code. The names of the files are GUIDs. The "problems" are all related to the fact that the code is just a snippet - things like undefined variables or missing types and so on, which indeed would be the case if the file stood alone, but the file is only a snippet of code. Perhaps it's somehow related to Git, but I searched the entire tree including the .git folder for matching GUIDs and no file exists with those names. Additionally, right-clicking on the tab displaying the file does not reveal the usual "reveal in explorer" options.
It's not a "big deal" but it yanks at my perfectionist tendencies to see a huge number of "problems" in the workspace.
Any idea what's causing this and how I can stop it?
Bit late to the punch, however you can use the shortcut Ctrl + Shift + M, which will open the problems pane.
You can use this command:
Ctrl+Shift+M
By the way, you can quickly jump to errors and warnings in the project.
Cycle through errors with:
F8 or Shift+F8
You can filter problems either by type ('errors', 'warnings') or text matching with the above search bar you'll see.
Another useful filter is 'Show Active File Only'
Reference here
In the workspace settings json file, you can add the following line.
"C_Cpp.errorSquiggles": "Enabled"
That will show the squiggles for both C and C++ files.
This link is an useful overview on changing the settings. You will find the language specific editor settings there as well.
It is a very common problem and the answer is very simple:
step 1 : Go to your working folder through file explorer.
step 2 : Find the folder .vscode and open it.
step 3 : Find settings.json and open it.
step 4 : look for "C_Cpp.errorSquiggles":"Disabled",
step 5 : Replace the text Disabled with Enabled and save the file.
As a long-time user of the paid version of Visual Studio (VS), I'm increasingly concerned about its suitability for production environments. Recent experiences (in various coding languages) have highlighted issues that are impacting my development workflow quite negatively.
Not going into explaining them, there are other forums for that.
But it has made me doubt a lot lately.
Stability Concerns Visual Studio:
Frequent Crashes: Unexpected crashes disrupt development flow and can lead to lost productivity.
Inconsistent Bug Handling: Encountered bugs are not always present in the free VS Code. Additionally, bug report resolution through official channels often feels sluggish and ineffective.
These factors raise a critical question: does Visual Studio currently offer the level of stability required for production development?
Open Source vs. Closed Source?
VS Code, while lacking some of VS's advanced features, presents a compelling alternative. Crashes tend to be isolated within extensions, leaving the core functionality operational and minimizing data loss. Furthermore, VS Code avoids project caching mechanisms that introduce corruption risks in VS. It runs projects in debug just fine, lots of add-ons, lots of customization/
Seeking Community Insight:
I'm eager to hear from fellow developers. Have you encountered similar stability issues with VS in production environments? What are your experiences with VS Code in this context?
Or perhaps VS Code misses things you desperately need on a working day?
I'm thinking of quitting coding in VS it balances more toward great troubles instead of a great tool.