unit test mocha Visual Studio Code describe is not defined

Finally!!! After a long search and reading some tutorials and comments I found the solution: the problem was with the config. Open the test config file and delete the following lines: “-u”, <<<< delete this line “tdd”, <<<< delete this line launch.js “version”: “0.2.0”, “configurations”: [ { “type”: “node”, “request”: “launch”, “name”: “Mocha Tests”, “program”: … Read more

Create C# .sln file with Visual Studio Code

Open VS Code terminal and navigate to the directory where you want to create solution folder. Use following commands dotnet new sln -o MyApiApp The -o parameter lets you specify the output directory Navigate to solution direction Cd .\MyApiApp\ Create new projects under root solution folder dotnet new console -o MyApiApp.ConsoleApp dotnet new webapi -o … Read more

What is the difference between jedi and python language server in VS code IDE?

Jedi is an auto-completion library written in Python while the language server is implemented in C#. The latter was done for performance and to share a common code base between the Python extension for VS Code and the Python workload of Visual Studio. Eventually the language server will become the default experience in the Python … Read more

VSCode Copy Relative Path with posix forward slashes

As of vscode 1.59 you can enable using the / separator even on Windows for the Copy Relative Path command. Explorer: Copy Relative Path Separator set to /. explorer.copyRelativePathSeparator auto (default): Uses operating system specific path separation character /: Use slash as path separation character \\: Use backslash as path separation character See https://github.com/microsoft/vscode/issues/56279 For … Read more

scss – Usage of ‘~’ in imports is deprecated – angular – vscode

In angular.json file Add this below build -> options: “stylePreprocessorOptions”: { // other options… “includePaths”: [ “./node_modules” ] } Remove ~ in every import Take this warning with a grain of salt: It might be better to explicitly use the node_modules/ prefix instead, especially if more than one person is working on this project.

Tag commit in VSCode

You can open the Command Palette (Ctrl + Shift + P) and choose Git: Create Tag. Give the tag a name and press Enter. To push the tag to the remote server, you can open the Command Palette again and choose Git: Push (Follow Tags). (It seems this is the PR that included the feature: … Read more

Visual Studio Code waiting for second key of chord. (Ctrl + A)

You have another key binding that begins with Ctrl+A, something like this: A sequence of multiple keystrokes pressed one after another (rather than simultaneously) is called a “chord”. You might have accidentally created it, or might have recently installed an extension that adds the problematic binding. To find it, do like I have done in … Read more