VSCode displays warning of "cannot open or read the Code Analyzer settings from file"
The terminal also displays "zsh: missing end of string"
I tried adding different file paths but I can't seem to make it work
Related
I am a new user to vscode and when I try to run my code in the terminal, it creates/opens up another file with the same name but says "The file is not displayed in the editor because it is either binary or uses an unsupported text encoding...". However, when I run the code without using the terminal, I see the outputs of my program(C++). As soon as I change back, the code doesn't run.
I see a lot of posts asking how to open VScode from the command line; I have the opposite problem!
When a type a file name from the CMD terminal, VSCode is launched with the file contents...why is that? I don't want that to happen! Any ideas on how to stop this from happening?
Maybe you should check your environment variables and find path for VScode, then delete it
Also maybe in your file properties VScode is set to default opening app , so it open files by default
For example (In my case Intellij IDEA) it looks something like this:
this mean you should go to properties and change "opens with" options
Thanks for the hints; they both helped on solving the problem.
The one particular file that I wanted to execute and NOT open with vscode is a bash script file with extension " .sh ".
I checked the file manager and it is not associated with vscode; instead, it says "SH Source File".
Then, I followed the link to thisdavej and after seeing the proposed registry entries, I went ahead and looked into my own registry...found that the .sh extension had an "OpenWithProgids/VSCode.sh", deleting that solved my problem. Now, when I type the name of the shell script, it actually executes.
Thanks.
Right now, in Visual Studio Code, errors shows up right in the file itself, in the "Problems" pane and in the file explorer, but only when the file is opened.
This is fine, but not ideal. As soon as I close the file, the error notification is gone... and probably, the site I'm committing my work too 😅
Is there any setting to make the folder always red or marked, if any file in it shows errors? Otherwise, is there a command like "Inspect directory for errors"?
Subsequent to When typing code in command line to launch vscode how to avoid this wsh error?
I can now launch vscode by typing
code .
But if folder contains code.js file it will open that file instead of current folder.
Why?
I can't see any explanation in doc https://code.visualstudio.com/docs/editor/command-line
When trying to cmd + click through to an imported definition from another file in my local directory, an Unable to open 'file-name': File not found error appears. Likewise, using ctrl + cmd + click > "Go to definition" returns the same.
This appears to be related to imported .scss files, but I have not confirmed it's restricted to only that file type. It almost seems as though VSCode is rejecting imported files without a file suffix (ie ../sass/media-queries";
I reviewed a few similar s/o threads that mentioned deleting the ~/.vscode hidden folder (that just deleted my extensions) and changing the GenerateFullPaths=true setting mentioned here: VSCode 'Unable to open file.cs: File Not Found'.
This is with a fresh install of VSCode v1.33.1 with, currently, no extensions.