visual-studio-code | 🎨 Omni for Visual Studio Code | Theme library
kandi X-RAY | visual-studio-code Summary
kandi X-RAY | visual-studio-code Summary
Omni for Visual Studio Code
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of visual-studio-code
visual-studio-code Key Features
visual-studio-code Examples and Code Snippets
Community Discussions
Trending Discussions on visual-studio-code
QUESTION
I am trying to write a .NET Core 3.1 console application in Visual Studio Code, and when I try to run the MSTest unit test I made for one part of the application, I get the following error:
error CS0234: The type or namespace name 'VisualStudio' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
I was following the instructions in this Microsoft tutorial.
Looking at an older question here hints that I might not be able to run that kind of unit test in VS Code:
The namespace Microsoft.VisualStudio... is defined in assemblies which are not part of the standard Installation of Visual Studio. It is available only if you installed the Visual Studio SDK.
I have tried running the tests on two different computers (a Windows machine and a Linux machine) and I have tried changing the project to .NET 5 instead of .NET Core 3.1. Neither worked, and I would like to change it back to .NET Core 3.1 if that won't break anything.
I have two csprog
files. Project names have been redacted.
The main project's csprog
file:
ANSWER
Answered 2021-Jun-09 at 01:10Finally figured it out. I needed to create a solution file, add the test project to the solution, and open the solution (not just the folder) in VS Code. That last part is where I had a bit of a snag.
QUESTION
ANSWER
Answered 2021-Jun-03 at 10:05QUESTION
Here is my code:
albums.cshtml
...ANSWER
Answered 2021-May-24 at 14:45maybe try:
QUESTION
For the vscode-python plugin, I am using the 'data viewer' to explore a large array of data from a CSV
file.
The data viewer has a 'filters' tool (see picture), which can be used to (1) find matches in a column for specific values (e.g. 1996
) and (2) find values 'greater than' or 'less than' a particular value (e.g. >2006
or <2014
). However, for my case, I would like the filters tool to filter for values 'greater-than' and 'less-than' at once (e.g. >2006 AND <2014
).
Is this possible?
I found this announcement of the introduction of the data viewer, but was unable to find any detail explaining options for the data viewer's filters.
Also, if there is documentation explaining possible input for the data viewer's filters, please let me know.
...ANSWER
Answered 2021-Apr-20 at 06:27Currently in VS Code, it supports single condition filtering, but it does not support ">2006 AND <2014
".
So I have submitted this problem and you could follow it: Can the "data viewer" in VS Code filter data with multiple conditions?
QUESTION
This might very well be a duplicate of this question, but the answer there doesn't work.
In my POM file, I have several profiles defined similar to this:
...ANSWER
Answered 2021-Apr-22 at 17:35The following solution assumes you already have the Java Extension Pack installed.
If not, please proceed with the installation then continue reading (Link to install Java Extension Pack)
In your launch.json configuration (Run -> Open Configurations) you need to use vmArgs as follows:
QUESTION
I've been having issues with the HaxeFlixel VSCode setup. I couldn't make the HashLink/Debug menu appear on VSCode, and I also couldn't do step 4 because when I put this command in my terminal:
...ANSWER
Answered 2021-Apr-09 at 19:57I fixed it by re-installing and re-doing the whole process. I'm not sure what the issue was but it's fixed now :).
QUESTION
Very annoying, gave me around 200 untracked files, every time I delete them they pop back up again. Tried to use lightweight
mode and surprisingly it did not work. They files do not have a pattern but it seems like only adding them to .gitignore
worked. But I thought there should be a better option.
Not sure if the Java Extension Pack did that or not, but after uninstalling it the problems are still there so I reinstalled them.
I really just wish to get rid of them, don't know if it's also causing some build problems. Been stuck on this for more than a week.
Some posts I have looked at:
https://github.com/redhat-developer/vscode-java/issues/618
https://stackoverflow.com/questions/53509715/what-project-files-does-visual-studio-code-create-via-its-java-extensions\
VS Code Java Debugger Making a Lot of Untracked Files (My previous post but it died)
Thank you!
...ANSWER
Answered 2021-Mar-26 at 03:19About removing untracked files from the working tree, the short answer as per the Git Documents is git clean.
Cleans the working tree by recursively removing files that are not under version control, starting from the current directory.
[UPDATE]
The command git clean -d -f
has it recurse into untracked directories, so you can also delete all untracked files in subfolders.
There's a configuration that can hide these untracked files in User Settings.json:
QUESTION
I use multiple cursors in VSCode (cmd-d
/ctrl-d
) a lot.
To quit the multiple cursors mode and go to normal single-cursor mode, you can use esc
.
However, this will move the cursor back to the first selected word. I want the cursor to stay at the last selected word.
Is there a shortcut / a setting to do that?
Example:
...ANSWER
Answered 2021-Mar-22 at 20:06With extension Select By v1.3.1 and the command moveby.calculation
you can calculate the new location of the cursor. By using the collapse feature of VSC you are left with 1 cursor.
Define this keybinding
QUESTION
I'm relatively new to Flutter but I already have developed and finished some Apps in Flutter. Recently I noticed a weird behavior of commands with the keywords "dart" or "flutter" in it.
Here is an example:
I was trying to migrate an existing project to the new dart null-safety and typed the command dart migrate
into my Visual-Studio-Code Terminal.
I was expecting an output like Migrating C:\....
as a response but instead got these three lines:
ANSWER
Answered 2021-Mar-21 at 12:26I think I know where the problem is. I ran the commands directly when I opened PowerShell. But the directory was something like C:\Windows\
and then it won't work.
After I did cd C:\Users\User
all commands will work as expected.
I was just thinking that it doesn't matter from where I run dart
and flutter
commands obviously you have to be in your user directory that they will work properly.
QUESTION
I have been using VS Code (I have the newest version installed) for over 4 months now.
Today, I was not able to delete the content in the terminal (powershell extension) anymore - even though I did not actively change anything in settings. Anyways, I went to this post and setted up everything (somehow the shortcut was not occupied anymore??). Now I am able to clear most of the terminal, but 3 or 4 lines still remain.
The terminal looks like this now. Between every single query, I cleared the terminal.:
...ANSWER
Answered 2021-Mar-18 at 13:01I tried restarting pc and vs-code, changing all shortcuts - nothing worked.
I finally fixed by resetting all of my personalized keybindings. Unfortunately, since I had a lot of them, I do not know which one caused the problem.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install visual-studio-code
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page