Visual Studio Code: HTML syntax highlighting not working - visual-studio-code

After reinstalling my system and VSC, I opened my project and found out that syntax highlighting no longer works for me in .html files.
What might be the issue?

Related

'Better comment' extension not working on C/C++ files in vscode

I just discovered that my 'better comment' extension stopped working after updating the visual studio code IDE.
It could not highlight comments in C/C++ files, but worked perfectly in other languages:
Here is the list of extensions I installed:
C/C++ Extension Pack
C/C++
CMake
C/C++ Themes
Doxygen Documentation Generator
I tried reinstalling the extension, but it did not work.
I'm wondering if anyone else got the same issue as me.
Was running into this same problem on C files and it seems to be an issue with a JSON parser for VS Code as explained by https://github.com/aaron-bond/better-comments/issues/437#issuecomment-1274590408
Investigation revealed that the problem was in the file Microsoft VS Code\resources\app\extensions\cpp\language-configuration.json which was missing a comma at the end of line 16
So just adding back in that comma fixed it for me

RLS: how to automatically resolve import errors in Visual Studio Code?

I recently switched from IntelliJ to Visual Studio Code, but one thing I can't figure out is how to tell my editor to automatically write a
use std::sync::Arc;
at the top of my file when I have something like the following import error:
In IntelliJ all I had to do was click on the red error icon and select "Import" and the use would appear at the top of the file.
I have the RLS extension for VSC. How do I do this?
Instead of the RLS extension, I switched to using the rust-analyzer vscode extension which supports suggesting imports as one of the "Quick Fix" options in vscode.

File Utils plugin - command 'fileutils.duplicateFile' not found

I am using FIle Utils plugin (https://marketplace.visualstudio.com/items?itemName=sleistner.vscode-fileutils) for Visual Studio Code.
When I try to >File Duplicate, Visual Code says "command 'fileutils.duplicateFile' not found".
I uninstall the plugin then re-install it, does not work.
I closed Visual Code, restarted mac, clear Visual Clear Editor History.
I still can not use the plugin to duplicate file or rename file.
Update VSCode to the latest version will fix the issue. I posted in File Utils github issue
For me following worked
Uninstall extension
Close VSCode
Open VSCode and install extension
Should start working

Cannot open solution file in Visual Studio Code

I have installed the Visual Studio Code on Windows. When I try to open a solution file in VS Code it opens the solution file, instead of opening all projects in solution. Is there a way to open existing project solutions in VS Code?
When you open a folder in VSCode, it will automatically scan the folder for typical project artifacts like project.json or solution files. From the status bar in the lower left side you can switch between solutions and projects.
Use vscode-solution-explorer extension:
This extension adds a Visual Studio Solution File explorer panel in Visual Studio Code. Now you can navigate into your solution following the original Visual Studio structure.
https://github.com/fernandoescolar/vscode-solution-explorer
Thanks #fernandoescolar
VSCode is a code editor, not a full IDE. Think of VSCode as a notepad on steroids with IntelliSense code completion, richer semantic code understanding of multiple languages, code refactoring, including navigation, keyboard support with customizable bindings, syntax highlighting, bracket matching, auto indentation, and snippets.
It's not meant to replace Visual Studio, but making "Visual Studio" part of the name in VSCode will of course confuse some people at first.
But you can open the folder with the .SLN in to edit the code in the project, which will detect the .SLN to select the library that provides Intellisense.
In the VSCode Marketplace look up and install vscode-solution-explorer

Syntax highlighting not working on AndroidManifest.xml, but it's fine on every other XML file (Eclipse

So this is strange. My syntax highlighting is not working on my AndroidManifest.xml file. It's rendering as if it's just a plain text file. All of my other XML files get syntax highlighted just fine, but this particular file is plain white and black. Any idea why that could be?
I've tried closing the file, restarting Eclipe.. nothing fixes it. I'm using Android Development Tools with Eclipse 4.3.1