vscode "applying code action organize Imports" - visual-studio-code

Currently got an annoying issue with VS and saving ts files.
every time I save a ts file I get a little popup in the bottom right telling me its "applying code action organize Imports".
I've tried uninstalled VSCode, removing all extensions, deleting the code folder in Roaming. As far as I can tell all my user settings are blank and it should be back to a clean install of VSCode. I've tried looking in the settings for something similar, even adding this to my settings.
{
"editor.codeActionsOnSave": {
"source.organizeImports": false
}
}
However, I'm still getting the same message on save and its restructuring the imports.
I've got vs code installed on another 2 machines and don't get the same issue.
Any ideas?

Turns out the folder I was opening had its own custom .vscode folder with its own settings.json which had the organizeImports setting enabled. So no matter what I did to my local settings file this one was always overriding it and nothing was showing up within VS directly.

I had forgotten to select a Python interpreter in vscode. Once I did this, the pop up on bottom right telling saying its "applying code action organize Imports" stopped appearing. This solved it for me.

Related

vscode settings pane is blank

For some reason, my vscode is no longer showing any settings in the UI settings pane. I can still open my settings.json, but even with my settings editor set to "workbench.settings.editor": "ui", I still get this:
I'm on macOS Catalina version 10.15.7 and vscode version 1.52.1
Any ideas on what might be causing this? Should I make a backup of my settings files and then reset the settings to default?
I was having this exact same issue recently, so I was a little disappointed when there were no solutions. I did not have my settings editor set to "workbench.settings.editor": "ui",as you had, so I tried doing that, but after restarting vscode it didn't appear to do anything.
I've been working in the same folder for a while now, so I tried toggling to a different folder to see if somehow that would kickstart vscode into displaying the settings pane. That did not work, but when I toggled back to the folder that I was originally in, the settings pane was now populating with the normal settings for User and Workspace.
A little bit more troubleshooting and it seems like if I have the settings pane already open in the workspace when the workspace loads (either by toggling to a new folder or by restarting vscode), I can see the settings, but if the settings pane is not already open in a workspace and I try to open it, I get a blank page. I also noticed that the settings pane that appears when you load a fresh workspace is stuck on one tab (ie the settings don't change if you toggle between User and Workspace), but if I close and reopen the tab (not the whole workspace), it works as expected. Here's a gif to prove I'm not crazy:
This is me just clicking around to show the behavior I'm describing
I can't embed the picture because of my reputation, but hopefully that shows the behavior I am seeing. I wouldn't be surprised if at the end of the day this is still somehow my fault because of my settings or something, but hopefully this helps someone else.
Small Edit
Just wanted to point out that I acknowledge that this is not an actual solution to the underlying problem, but it's certainly worked well enough for me for now, maybe some one else can chime in with the true solution.

Disable VSCode file editor re-use

In VSCode if I press Ctrl+P, I can type a filename and open it.
Since some recent update, these files open in the same editor, so it isn't possible to open multiple files one after the other.
I remember there being a setting somewhere but I can't find it. What's the name of it? And/or, how do I change this behavior?
As #Mark pointed out, the key word here is "preview".
Under Workbench -> Editor, there is Enable Preview from Quick Open.
Hopefully this helps someone else out who also doesn't know what the feature is called, and who is annoyed about VS Code constantly resetting their config when it feels like it. :-)

why there is no selection when I click F5 to run program in vscode

In the begin, for example, I'd like to run program by click F5, and there is a selection box on the top of vscode. However, maybe I click some errorly, it debug directly, and no selection here, and the terminal shows (base) in the front of result, why and how to correct to original setting?
One way to reset VS settings as follows:
Note: Please use save as to backup settings.json in case you have something that you may need to restore later.
DO NOT DELETE ANYTHING FROM YOUR "defaultSettings.json"
These instructions are only for clearing out everything except {
} within your user settings.json:
The easiest way to reset VS Code
back to the default settings is to clear your user settings.json file
contents in the Settings editor. Delete everything between the two
curly braces, save the file, and VS Code will go back to using the
default values.How can I reset my user settings?
If following above does not resolve your issue, please consider adding a screenshot of the issue along with your posted question and/or add default settings.json, so it can be compared with a working default settings.json file for your assistance.

VSCode Go To Definition does not Work on `import './index.css'`

From what I understand, issue 29899 of vscode solved this problem... except, for me it does not appear to be working.
I just want to be able to right click and click "Go to definition" and open a css file from an import statement, instead of having to dig through the folder tree to open it. But it doesn't work.
What do I need to do to get this working?
This was working for me on VSCode but it wasn't working on VSCode Insiders.
Now after the latest release of Insiders (1.53.0) it works as well there.
That makes me think that perhaps a fresh install will solve it for you, as that update did basically that.

How can I show code error in VSCode by hovering over it

Today, I was watching a video tutorial. The tutor did a minor mistake in his code and while he was trying to find out what the mistake was, he hoverd over the code and exactly at the place, where his error was, VSCode popped up with an Error message like this:
Does any one know how can I activate this in my VSCode? Do I need to install an extension?
The setting is called "Editor > Hover: Enabled". You can search for it in the VSCode settings and make sure the box is checked to enable it.
this should be a built in feature but may need enabling it..
more info at
https://developercommunity.visualstudio.com/content/problem/249839/vs2017-1571-no-values-on-hover.html