visual-studio-code | 🧛🏻♂️ Dark theme for Visual Studio Code | Theme library
kandi X-RAY | visual-studio-code Summary
kandi X-RAY | visual-studio-code Summary
A dark theme for Visual Studio Code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Scans for theme keys
visual-studio-code Key Features
visual-studio-code Examples and Code Snippets
Community Discussions
Trending Discussions on visual-studio-code
QUESTION
I'm using Visual Studio Code's terminal (on a Windows 11 device) and can't run commands like java
, flutter
etc., be it VS Code's Powershell terminal or VS Code's Command Prompt terminal.
When I try to run java
by typing java
in the VS Code Powershell terminal, it displays:
ANSWER
Answered 2022-Apr-03 at 16:35make sure to download java extension ,
- go to vs code
- click "extensions" button on left side
- after that, on search bar appeared on top left
- search "java" and click the first result (will be extension pack for java)
- and click "install" to download java extension and follow the instructions given below in "details" option
then after installing, you have to install some complier stuff from google
if you face problem, click this link below
this will give you idea
hope it helps you
for flutter in vs code
click "extensions" button on left side
after that, on search bar appeared on top left
search "dart" and click the first result (dart)
and click "install" to download dart extension and follow the instructions given below in "details" option
then after installing, you have to install some complier stuff from google
- if you face problem, click this link below
- https://youtu.be/5izFFbdHnWY
- this will help you -thank you
QUESTION
I checked this question and many other posts to help me resolve my issue, but nothing worked.
I trying to open an existing Java Project from Eclipse in vscode. The project was opened successfully in Eclipse 2021-06 and I fixed the referenced libraries by selecting the JAR libraries under lib/
folder and right-click - configure build batch - add select add to build path. Then the file .classpath
was updated automatically. Then I had to download JDK 11 (needed for vscode) and JDK 1.8 needed for the Java project. I managed to work with eclipse to set the JDK correctly and all worked fine. I was able to compile the project, export the result JAR and deploy and all worked well.
I am having trouble to open this project in vscode using Open Java Project
option. I am facing issues adding referenced libraries this Java project as it is a managed project (since it was created in Eclipse). When I try to add the libraries using vscode UI, I am getting mixed results and sometimes it is not working and the build fails. I was surprised as in some instances, things just work, and then they don't.
I tried to update .classpath
file in vscode and still same issues. When I try to add the libraries from Referenced Libraries (Read Only)
under JAVA PROJECTS
tree in vscode by clicking +
, it has no effect. This step will modify the file settings.json
under .vscode
folder by adding the relevant values to the property "java.project.referencedLibraries"
.
I am confused about how to configure the referenced libraries for Java projects in vscode. Following is a summary of questions:
- How to add a library using a relative path to a Java Project based on the project root folder?
- What is the difference between adding a library using the
.classpath
file and by modifyingsettings.json
file? Which one will win? - How to add a folder with all JAR files to be as the referenced library to the Java Project? This is to avoid adding one file at a time.
- Why the
.classpath
and.project
files are not showing in vscode explorer view? It will only show when you open the file in vscode from the Windows File Explorer. - I found command
Configure Classpath
but it is read-only, which I think it is the same as the.classpath
file. Is there a way to change it from vscode UI? - When I remove
.classpath
file or when I removed theclasspathentry
lines from the.classpath
file, the node 'Referenced Libraries (Read Only)' underJAVA PROJECTS
in vscode view was removed. Why?
See the snapshots below for more details.
I appreciate your help.
...ANSWER
Answered 2021-Sep-17 at 08:45Basically speaking, java extension looks for jars from Referenced Libraries.
Here're my answers to your questions:
Right click the jar and choose
copy relative path
then add it to settings, click the refresh button then the added jar should be displayed under the option Referenced Libraries:The CLASSPATH variable is one way to tell applications, including the JDK tools, where to look for user classes. When it comes to add jars, settings
java.project.referencedLibraries
wins.No way to select jar folders but you can use keyboard shortcuts to select all jars then add them.
There's a setting called
"java.configuration.checkProjectSettingsExclusions"
, and it's true by default, so.project
and.classpath
won't be shown in VS Code.The command Java: Configure Classpath works on my machine, which can customize current project.
My guess is when you open a new project, vscode popped up a window and ask you if trust it, and you chose Not, then project is read-only. Trusting the workspace then try the command Java: Configure Classpath again, it should be writeable.
QUESTION
So for some reason my intellisense is not working.
I tried the solutions suggested here Visual Studio Code: Intellisense not working.
The solution that seems to help most people is adding "python.autoComplete.extraPaths": [ "${workspaceFolder}/customModule" ]
, didn't work. Also VS Code says it doesn't recognize python.pythonPath
when I add it.
Auto-complete not working, screen capture didn't capture my cursor, but it's right after argparse.
, which should give the option to auto-complete with a list that includes: ArgumentParser
:
Remote server installed extensions:
Settings.json
This is settings.json
on remote server
ANSWER
Answered 2022-Mar-15 at 16:23the first solutions are kind of obvious, but ill add them anyway,
- Removing reinstalling it both locally and remotely
- Make sure VS code is updated to its last version
- In
settings.json
, set a language server in"python.languageServer"
. The Language Server includes:Jedi
(build-in Python extension ),Microsoft
,Pylance
, since you have already installedPylance
, let's start with that one (if that doesnt work, try the others). - set your
python.pythonPath
to the path returned in your terminal forwhich python3
QUESTION
I am trying to debug one specific unit test in VSCode with breakpoints.
On the command line, this works perfectly to execute:
...ANSWER
Answered 2022-Mar-14 at 02:27Modify the "mode"
property in your launch.json
:
QUESTION
I am trying to make pretty printing to work on Ubuntu 18.04 from visual studio code 1.64.2.
I tried to follow instructions initially from here and then the answer by Devymex as detailed in here.
Then further digging up revealed that the gdb pretty printing itself is not working as I tried to build, make, and run my code outside of VSCode. I had gcc 7.5 preinstalled on Ubuntu 18.04 and then I installed 11.2. But nothing worked.
The code I am trying to run
...ANSWER
Answered 2022-Feb-25 at 01:18I found a solution as posted here. The gdb was not able to find the location where the python printers.py was located. The file was located under /usr/share/gcc/python/libstdcxx/v6/printers.py
.
What I needed to do is create a .gdbinit file on my home directory including the following lines of code
QUESTION
EDIT
It seems that my first error I describe is very easy to reproduce. Actually, Google Run fails to run any GRPC query on a .NET5 GRPC server it seems (at least, it did work before but as of today, February 21st, it seems that something changed). To reproduce:
- Create a .NET5 GRPC server (also fails with .NET6):
ANSWER
Answered 2022-Feb-24 at 08:44It is an actual bug from Envoy and Google Cloud Run. There is a quick fix if you're using .NET6, otherwise it's a bit more hacky. I will just copy here the answer provided by Amanda Tarafa Mas from Google Cloud Platform on the github issue I opened:
Here are the potential fixes:
- When using .NET 6 you can set KestrelServerOptions.AllowAlternateSchemes to true.
- If on a lower .NET version, consider something like GRPC :scheme pseudo-header passed from proxy/loadbalancer causes ConnectionAbortedException dotnet/aspnetcore#30532 (comment). Or consider upgrading to .NET 6.
What's happening:
- Cloud Run has dependency on Envoy, which has a behavior change since 04/15/2021, see "preserve_downstream_scheme" in release notes: https://www.envoyproxy.io/docs/envoy/latest/version_history/v1.18.0 Envoy recently removed the old behaviour: https://www.envoyproxy.io/docs/envoy/latest/version_history/current#removed-config-or-runtime
- In turn, this exposes this .NET issue: GRPC :scheme pseudo-header passed from proxy/loadbalancer causes ConnectionAbortedException dotnet/aspnetcore#30532, for which the Kestrel configuration flag was added, but only for .NET 6. I'm looking into having this documented somewhere. @meteatamel can you update the tutorial so that it uses the Kestrel option?
For me setting KestrelServerOptions.AllowAlternate
was enough to make my GRPC server work again.
As @Craig said, you can track the issue here and see if it gets resolved.
QUESTION
I used to position my terminal at the left side of my visual studio code (as presented on the first image) but now the option to do that is gone, i think some recently update removed it (which seems strange, why would they remove a feature?).
After some googling, i found this How do I move the panel in Visual Studio Code to the right side? But it doest help me, as my problem is different
Someone knows how i can achieve the same result nowadays?
What i already tried:
- Tried to add this command at settings.json "workbench.panel.defaultLocation": "left" but it says it has been deprecated
- Right click at terminal header does not show the "Move to Left" option anymore, instead there's only a Move Views to side panel, which results in a right-side placement, not left
- View > Appearence does not have the desired option anymore
ANSWER
Answered 2022-Feb-10 at 21:22v1.64.2 is out 02/10/2022 and this can now be done in that release.
Use the command:
View: Move Panel Left
from the Command Palette.
QUESTION
I'm using Visual Studio Code Insiders version 1.65.0-insider. Until 3 days ago, I was not having any problem connecting to the remote server at work from my work laptop through a VPN. I have my ssh config file and when I opened vscode (when connected to the VPN), I was asked for my password and it connected without problems.
However, from yesterday I have started getting an error stating Could not establish connection to idk4v: The VS Code Server failed to start. idk4v is the remote machine's name that I gave in my ssh config file. I also get Waiting for server log... in the output continuously. I am pasting the output here from trying out just now. I have removed the non-essential parts for brevity:
...ANSWER
Answered 2022-Feb-15 at 20:37This is very much a hack and absolutely not a long term solution but as a quick work around.
Find the server.sh
path in the log you posted, open it in an editor, and add --accept-server-license-terms
to the last line so it looks something like "$ROOT/node" ${INSPECT:-} "$ROOT/out/server-main.js" --compatibility=1.63 --accept-server-license-terms "$@"
. This will accept the terms automatically until this gets patched by MS.
QUESTION
I am trying to transform an old non-SDK-style mstest project that was generated with Visual Studio into a new SDK-style project using only Visual Studio Code.
I read and followed this little how-to, but this is only for .NET core and newer; not for .NET framework.
I need my project to target both. If I do it like this
...ANSWER
Answered 2022-Feb-11 at 13:59Seems I cannot use dotnet test
for it but need msbuild
. (Thanks for the comment, @Heinzi.)
I can run it like so:
QUESTION
I was following the steps here:
https://www.fleekitsolutions.com/use-selenium-c-visual-studio-code/
To use Selenium 4 with vs code. Then this led me to the following instructions here:
to install .NET 6 SDK using PowerShell script, and I got the error below:
dotnet-install.ps1: Exception calling "ExtractToFile" with "3" argument(s): "The archive entry was compressed using an unsupported compression method.
See the snapshot below.
My intention was to get the latest version of "Visual C++ Redistributable for Visual Studio" which led me to the above instructions to install dotnet 6 sdk.
Note the I am using elevated admin PowerShell console for this purpose.
I also got a similar error when I was trying to install the latest version of Selenium PowerShell Module using PowerShell. When I installed version 3.0.1 of Selenium-PowerShell module, it was successful.
Edit: After installing .NET SDK 6 from MS Build Tools, I completed the steps to configure vscode for Selenium 4, and now I am getting this error:
...ANSWER
Answered 2022-Feb-10 at 19:24I solved the problems with the following:
- Using MS Build Tools, I downloaded the needed .NET SDKs. I selected only the needed items. I didn't download Visual Studio.
- I did try to download using older version such as using Visual Studio Build Tools 2019 but not sure exactly since I was trying a ton of steps...
- There is an issue that the config section of NuGet is empty. Add the following part to
%appdata%\NuGet\nuget.config
:
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