.vscode/settings.json is empty but plugins are disabled in workspace - visual-studio-code

I want to disable several plugins in certain workspace in VS code. So I've started vs inside workspace, opened plugins tab and clicked arrow next to disable button and choose Disable (workspace). And it works. Now when I open certain workspace I have disabled plugins which I've disabled before. But where does VS code store the information about disabled plugins in workspace? In my workspace where I've disabled plugin I have .vscode/settings.json but this file is empty (same result if I do: File > preferences > settings choose Workspace and click Open Settings (top right)). Re-enabling plugins in workspace also works as expected.

Related

Is it possible to enable and disable extensions for certain workspace with .vscode

I added some extensions to vscode, including python, c++, flutter, etc. I'm trying to disable some extensions in a specific repo, such as the flutter extension in my frontend repo. I want to save this setting in .vscode so that when I move the repo, vscode will remember the setting.
In order to enable and disable the extensions for a certain workspace in visual studio code.
Go to the extensions on the sidebar and disable/enable for the current workspace. Adding screenshot.
To do this step by step:
On the Extensions sidebar.
Select the extension, then select the 'Disable' button. This will disable the extension for all workspace.
Then select "Enable (workspace)" to enable it for the current workspace.

No workspace settings in VSCode json settings editor

I created a VSCode workspace
I then saved it as golang.code-workspace file (say) on my Desktop
When double clicking the file, VSCode opens with the expected files on the explorer sidebar.
I now want to edit the particular Workspace's settings, so I hit Command + , on my keyboard.
I am then presented with the following json file(s)
What troubles me is that according to the breadcrump (Users > pantelis > Library > Application Support > Code > User {} settings.json), it seems as if are some kind of global, and not workspace-specific settings.
How can I edit the settings for just the particular workspace I created?
In the UI, the distinction is more clear as you can see in the image below.
Also, in the UI, why do I get (apart from the User settings tab), 2 additional tabs (Workspace and the name of the workspace (golang) I just created?) what is the difference between these two?
There's the command "Preferences: Open Workspace Settings (JSON)" (workbench.action.openWorkspaceSettingsFile) which opens the workspace-specific settings (optionally creating the file ./.vscode/settings.json relative to the workspace root if it doesn't exist yet). The order in which settings are overridden is as follows (from more important to less important):
Workspace settings
Global settings
Default settings
... i.e. if you have a certain setting in your workspace settings, it will override the same setting in your global settings; in the same manner your global settings override the defaults (and the defaults are just what VSCode ships with and what's in force if you don't change anything).

How to reset ALL Eclipse setttings (not only workspace)

I have problems with certain setting e.g. Java content assist and Java formatter. The problem is that they persist even after
creating new workspace (all projects are gone, seeing welcome screen)
deleting .eclipse from user folder
deleting whole eclipse folder and unzipping a new one
After starting a freshly downloaded eclipse i still see my specific settings in
Content Assist
Formatter
(there might be others, don't know?)
I am not logged in "Eclipse User Storage". So how to get an Eclipse as it would be on very first install?
Some Details as requested by howlger:
I installed a fresh eclipse by unzipping "eclipse-jee-2021-06-R-win32-x86_64.zip".
Before starting it i removed :
from maven project folder
.settings Folder
.classpath file
.project file
from workspace
.metadata
Now starting eclipse.exe choosing the clean workspace on prompt.
Checking preferences:
indeed my workspace setting like encoding is reset to cp1252
but content assist still has my previously set "Auto activation triggers for Java" set to .absd...
Content Assist "Favorites" contains my previous list
Content Assist "Advanced" also contains old settings
In all of these cases i can press "restore defaults" and it will change. But i don't want to click through all preferences and reset them.

How to export Dialog Settings between workspace without manual copy of the dialog_settings.xml in eclipse

I am trying to export the dialog settings of a eclipse dialog between work spaces.
Generally,the dialog settings are persisted in the dialog_settings.xml on the exit/restart of the workspace.
Up to my knowledge the files has to be manually copied from workspace (1)to the desired workspace(2) and to be restarted for the settings to be loaded
file path to be copied:
workspace1.metadata.plugins\org.eclipse.search\dialog_settings.xml -->copied to workspace2.metadata.plugins\org.eclipse.search
Is there an api provided by eclipse to transfer these settings ?

Eclipse Syntax Coloring reset after restart

I installed Ubuntu 15 new and I installed eclipse Mars.
Now, I want to have the syntax highlighting exactly like in visual studio, so i downloadet the .epf here http://eclipsecolorthemes.org/?view=theme&id=23347 and imported it into eclipse.
Until here, I have no problems, but when I restart eclipse the highlighting will reset after 5 seconds to default.
I don't know why, but when I start eclipse via sudo, I don't have the problem. I have no more ideas...
I saw, that eclipse run this on startup:
http://pastebin.com/6YGVxfhU
I dont know, how i can stop it
To disable all Oomph startup tasks
In preferences, choose Oomph | Setup Tasks. Then check the Skip automatic task execution at startup time.
To disable which preferences Oomph tracks
In preferences, choose Oomph | Setup Tasks | Preference Recorder.
Check the Record into: checkbox.
In the table uncheck the preferences you don't want synchronized. For your case it is probably the set of /instance/org.eclipse.ui.workbench/[...].
(Optional) Click Open the recorder target file button and fully edit your preferences.
If you want to use Oomph to track your syntax, you can import the .epf file into the preference recorder:
Open Window > Preferences and go to Oomph | Setup Tasks | Preference Recorder
Make sure Record into is selected and whichever profile you want to record to is selected (probably User.) Open the recorder file using the button next to the dropdown.
A .setup file will open in the editor. Close the preference window. An Oomph toolbar should have appeared. The third button is Import Preferences.
Oomph - Import Preferences Button
Click it, browse to your .epf file and open it. Move whatever preferences you want to import from Available Preferences to Selected Preferences and click OK.
The preferences will be added to the .setup file, under the root node (probably User.) Drag them into the User Preferences node (the first child node with the folder icon) and delete any existing nodes with conflicting names (it won't combine them.)
Save the file.
You should now be able to restart Eclipse and have Oomph load in your correct syntax coloring.
Answer from this eclipse forum post with a few extra steps I had to do to get it working.