restoring vscode settings to default - visual-studio-code

In vscode, there is an option to chose which language I'm going to use when I make a new file. I accidentally clicked do not show for this setting/UI but I want it back. I tried googling it but I can't find any solutions. Is this is even changeable?

If you are talking about this feature, it can be re-enabled by changing the value of Workbench > Editor > Untitled: Hint (workbench.editor.untitled.hint) in the settings.
But without that feature you can still change language mode by clicking the button at the bottom right of the window.

Related

is there a way to toggle search window results in eclipse

I am not sure if this is a bug, I tried uninstalling and reinstalling eclipse but seems like the problem has been saved in cache somewhere. Whenever I do a file search or C/C++ search with eclipse (either by clicking on the icon, or by typing ctrl+H), I do not see a search window pop up with results.
Same thing when I right click on a term and look for references or declarations in the workspace/project. I only see the occurrences Highlighted in the files, but that means I would need to manually check each file, which is just not doable. I also tried resetting the perspective, no luck!
Results in highlights, but no result window on the right side like there normally is:
I do not understand why this happens, I wonder if I disabled the search windows with a shortcut, this already happened with disabling the breakpoints and it took me a while to figure it out. Is there a way to toggle the appearance of the window? And if it really is a bug, how can I destroy all of the program's cache, because uninstalling by itself didn't work, there was a few settings that remained with the fresh installation.
Thanks!
There is a setting in the Search Preferences:
Window->Preferences --> General->Search
Then the search view should open up after starting the search.

VS code doesn't show settings defaults json file beside my customization

I'm trying to master working with visual studio.
In the Intro Vieos the lecturer after opening User Settings shows that on the right side there are the default values for all settings and he can edit them by clicking on some icon beside each setting statement. Like the image below
I just do the same thing as he does. meaning I:
press ctrl+shift+p
search for Preferences: Open User Settings
and I click on it when found
But what I end up in does not show the default setting values on the right, beside a tab on the left to write my own customization. I need to see all the current default settings to decide which one I want to edit. How can I achieve that?
Thanks in advance.
I assume the lecturer uses an older version of Visual Studio Code. There was a change of the settings UI in August 2018, see here: https://code.visualstudio.com/updates/v1_27#_settings-editor
See this link to see how to use the settings UI: https://code.visualstudio.com/docs/getstarted/settings
And there is always the chance to press ctrl+shift+p and type Preferences: Open Settings (JSON). If you go to a new line and type "" you see the autocompletion list which shows all possible options.
EDIT: I just discovered that you can also restore the old behaviour. Open the settings and set workbench.settings.useSplitJSON to true.

VSCode: How to turn off auto select in File Explorer when changing window tabs?

In VSCode, if I have an editor window tab open and I click anywhere in that editor window, the selected file in the File Explorer changes to the file being edited. I would like to prevent that behavior. This is possible in Visual Studio, but I can't seem to find a similar setting in the preferences file of VSCode.
Can anyone provide some suggestions?
This has been added, see https://github.com/Microsoft/vscode/issues/14745.
Configuration is "explorer.autoReveal": false
You can't, at least not today. The only thing you can do, is keeping the scroll position when switching tabs. See this answer for the setting: VSCode prevent file Explorer from jumping
And here is the feature request on Github: https://github.com/Microsoft/vscode/issues/14745
(Feel free to add a "Thumbs Up" via Github Reaction at the top so the request gets more attention in the future, this increases the chances that it gets implemented sooner)

Do not show user input in console autocomplete

Recently, I have noticed that Google Chrome's JavaScript console autocompletes previously inputted commands. For example:
I want to remove this feature because the autocomplete displays variables that may not exist. Is there a way to remove this feature?
Yes. A lot of people found it annoying, so they added a setting to disable it.
First, enter the DevTools settings from the menu button in the top right corner.
Then, in the "General" section, disable "Autocomplete from history".

Eclipse Invisible Editor

I have eclipse Juno. I'm not sure how, but my editor in eclipse is now "invisible". By invisible i mean, the editor pane is not in the visible window. I'm not a novice in eclipse and i know you can minimize the editors or maximize a different panel - but this isn't the case. There isn't even a minimize/maximize button on this empty space where the editor should be.
However, the title bar shows the current file that is opened (but in the invisible editor and hence invisible). and my outline sidebar shows the file's outline.
I think this might have happened when splitting editor panes (which i do a lot, love the side by side comparison), and also switching the perspective.
Any ideas on how i can get the editor back in the visible window?
Above is a screenshot of how it looks. At the time of the screen shot i had just recently clicked a file to open it, and it seems to have opened in the invisible editor.
I've tried all given solutions and none of them solved the problem.
Only using Window->New Window gave me a new fixed eclipse window.
Try Window > Reset Perspective to get things back to normal.
I minimized sharedArea and after restore it was empty. Editors worked well (open, close, save etc.) but i could not see them. Closing all perspectives helped.
This happens to me sometimes when I try to split an editor group by dragging an editor tab. The only solution that worked for me was to close every single perspective in the application toolbar, then Window -> New Window.
I've had this happen occasionally when splitting panes. Restarting Eclipse didn't work for me, nor did resetting the perspective.
The solution I stumbled upon was to give the editor area focus (by clicking in the area where it should be, I suppose) and close files in the invisible editor with Ctrl+W until the editor reappears. You may notice the window title changes to follow the file in the hidden editor.
I had the same problem and simply stopping/restarting Eclipse fixed it.
I have the fix, when neither resetting the perspective or restarting eclipse helps:
At the bottom of the File Menu, there is your recent file name that you are trying to get back. Click on that and it should return.
Start eclipse with:
eclipse.exe -repair