How to change the owneship of default.conf file in code::blocks editor in ubuntu? - codeblocks

I just started using code::blocks editor and found that its default font size is smaller to me.Whenever I open it I have to manually resize the font by settings -> editor -> choose. I'm finding a way to make my customised settings as default.
I have searched about it all over the internet but didn't find a solution. I somewhere read that basic settings are stored in a file named default.conf which is only readable and only root has permission to edit it. How can I change its permission to make it writeable or some other way .So, can somebody please help me how can I make my customized settings as default. I'm in desperate need.

Related

How can I set dark mode in Code::Blocks 17.12?

I am using Code::Blocks 17.12 and I want to set the dark mode theme and I don't know how.
First you need to download the themes, download it from Code::Blocks Theme. Then extract it on the desktop. Close the CodeBlocks application before opening CB Share Config. CB Share Config is a tool that installs along with CodeBlocks. It can be found in Program list.
Exit CodeBlocks if already opened.
Open CodeBlock Share Config
Browser Destination Configuration file which is in right side.
Select default.conf
Browse Source Configuration file which is in left side.
Select the downloaded theme.conf
Tick all the checkbox that appeared in source configuration file, which is in right side. (You can use space to tick)
Click on Transfer and then Save, and then Close.
Now open CodeBlocks, goto Settings>>Editor>>Syntax Highlighting and then Color Themes.
Here, you can change the theme to downloaded one.

VsCode include Path errors are impossible to solve

The other answers i've seen proved to be ineffective.
I'm using c++ and it gives me error(red squiggle) when i include vector or string.
It tells me that my include path is not updated so i click on the lightbulb and try to edit intellisense configurations.
In this window there's an include path section, inside the box there's this string: ${workspaceFolder}/**.
So is this string the problem?
I've tried to put in this box the following path as well:
/usr/local/include but it doesn't change anything...
Please what should i change about this include path??
What is there supposed to be in it?
Press Ctrl+Shift+P to open the Command Palette
Start typing "C/C++" and then choose Edit Configurations (UI) from the list of suggestions. This opens the C/C++ Configurations page. When you make changes here, VS Code writes them to a file called c_cpp_properties.json in the .vscode folder.
Find the Compiler path setting. VS Code will attempt to populate it with a default compiler based on what it finds on your system. For Clang on macOS, the path should look like this: /usr/bin/clang.
The Compiler path setting is the most important setting in your configuration. The extension uses it to infer the path to the C++ standard library header files. When the extension knows where to find those files, it can provide lots of useful information to you as you write code.
Set IntelliSense mode to ${default}, which on macOS is clang-x64.
You only need to modify the Include path setting if your program includes header files that are not in your workspace or in the standard library path.
On macOS, you must set the macFrameworkPath to point to the system header files.
Visual Studio code places these settings in .vscode/c_cpp_properties.json.
Original documentation here!

H2_DATABASE lost the default settings

I removed all the default saved settings suggest me how to retrieve the default settings ( i tried uninstall the old one and installed again but the default settings not came ).
Delete the file {userHome}/.h2.server.properties, as documented.
(On macOS, the .h2.server.properties file is hidden in your home directory. In this case, you can use the Cmd+Shift+. shortcut to show hidden files in Finder.)
Make sure to restart the server afterwards to see the change.

Change default opening and saving location in Visual Studio Code?

Is it possible to change the default opening and saving location when trying to open and/or save a file.
The default location seems to be the root, but I would like it to be the desktop.
I haven't found anything in the Preferences settings that would support this, nor found anything stating that this is supported.
As you've stated yourself, the default location is the root of your system. At least, if you aren't working in a folder.
What you could do, of course, is simply open your ~/Desktop as a folder in VSCode. Then, automatically, your default save location is exactly as you'd like it to be.
In case anyone is still looking for this, you set this in settings.json using the key "git.defaultCloneDirectory"
You can change the location of your projects/solutions.
File -> Open -> Projects/Solutions
To do this modify
Tools -> Options -> Projects and Solutions -> Locations
I think that's the closest you can get.
The topic is documented in multiroot workspaces.
https://code.visualstudio.com/docs/editor/multi-root-workspaces
Just for reading, though I couldn't find default folder config by the first look into the article.

Edit current theme in SublimeText3?

I remember being able to edit ST2 tabs colors and what not. How is it done in ST3 though?
I'd recommend copying the theme file to your user folder, then making the modifications there. Then, you can manually choose your custom version. Alternatively, you can override files in the packages folder. To assist with this, you can use PackageResourceViewier. I wrote it to help with viewing/overriding packages in ST3. With that being said, I haven't tried to edit theme files, so it may handle things in an odd way. So, I'd again recommend the first option of copying out the theme file, then manually choosing it.
For a reference on how to change the theme in your settings, see here.
For ST3
Backup Packages/Color Scheme - Default.sublime-package
Open Packages/Color Scheme - Default.sublime-package in some kind of archive manager program. (make sure you have write permissions)
Copy out the theme file you want to edit.
Edit the theme file.
Overwrite the theme file inside the Archive.
Restart Sublime
Smile

Resources