MonoDevelop - code window colour scheme - monodevelop

Is there a way to customise the code window colour scheme in MonoDevelop? I would like something like Son Of Obsidian if that is possible.

Yes. Go to the MonoDevelop syntax highlighting options panel and press the "New" button:
Enter a name and description for your new colour scheme, and pick the existing colour scheme on which you would like to base it:
Select your new colour scheme, and press the "Edit" button:
Now you can edit the colours of your new scheme:
Note that you can export your scheme definition as a file using the buttons at the bottom of the syntax highlighting options panel, or import a scheme from a file. The schemes are defined using a simple XML format. However, beware that the filename must be of the form **Scheme.xml.*

Related

Color/highlight or Add an icon to a specific file under project files

I have a very important file at the level of my project which is called veiw.yml. I would like to color/highlight or put an icon on it, in order to make it more attrective for me. In other words I want color or add an icon on one of my yml file at the level of my project files, that match the exactly regex expression ^views.yml$.
Is there any way I could do the trick with phpstorm or change the phpstorm Atom Material Icons plugin configuration to add another icon to his iconslist?
Any idea, help would be appreciated.
There are many options that can be used based on what exactly you want to achieve (why you need to highlight such file -- maybe you do not need highlighting but want something else and you do not know about such possibility):
Just add the desired file(s) or folder(s) to the Favorites and use it instead of locating that file in a Project tree all the time.
NOTE: Bookmarks have now replaced Favorites that existed in earlier versions of the IDE.
You can bookmark specific file with Mnemonic Bookmark (0..9 mainly) and then open such a file with just one key press from anywhere. This will also add a special mark next to the file name.
NOTE: this is a per file thingy, no patterns.
https://www.jetbrains.com/help/phpstorm/bookmarks.html#add-mnemonic-line-bookmark
https://www.jetbrains.com/help/phpstorm/bookmarks.html#navigate-bookmarks
If it has to be a different color in the Project view panel... then just define custom scope at Settings/Preferences | Appearance & Behavior | Scopes and then (once scope is fully saved) associate that scope with specific color at Settings/Preferences | Appearance & Behavior | File Colors (ensure that appropriate checkbox is selected, which is by default).
You will now have different backgrounds under such files in the Project View panel and other lists where file names are used.
https://www.jetbrains.com/help/phpstorm/configuring-scopes-and-file-colors.html
https://www.jetbrains.com/help/phpstorm/settings-file-colors.html
ProjectTree Color Highlighter plugin (https://plugins.jetbrains.com/plugin/13951-projecttree-color-highlighter) -- allows assigning custom colors to custom files.
NOTE: does not support patterns, only manually assigning files. Therefore this can be treated as a Plus or as a Minus, depending on your needs.
Extra Icons plugin (https://plugins.jetbrains.com/plugin/11058-extra-icons). It allows assigning custom file icons based on folder or file name patterns. You can even bring your own icons.
NOTE: From the 2022.1 version it is a paid plugin now (only $5 USD per year but still).

How to change automatic variable generation in PhpStorm?

With PhpStorm, if you type function foo(MyClass $, it will propose myClass as the variable name.
But since I added a WordPress project (I accepted default settings for WordPress as proposed), it propose my_class instead.
I really would like to bring back the camel case naming by default, but I don't find where it is configured.
Is there an option for this? Or maybe a configuration file to edit?
In the settings (Ctrl+Alt+S), go to Editor > Code Style > PHP, then click the Other tab. At the bottom of the screen, you should see the Variable Naming Style section. Select camelCase.

Force autocomplete suggestions for file paths

I am currently working on a controller file for a Phalcon project. I like how PhpStorm gives you autocomplete suggestions when writing a src or href value in an HTML file. I was wondering, is possible to enable autocomplete suggestions when adding resources in a controller?
This is what happens when I force autocomplete suggestions(Ctrl + Space)
This is what I would like to happen.
EDIT: I should also note that I have marked the folder, containing all my resources(ie. CSS, javascript, and images), as the "Resource root".
RE: EDITThis does not affect availability of this feature/functionality in any way as "Resource roots" are used for path resolutions/validation and not for actual "offer this functionality or hide it" choice. -LazyOne
Unfortunately there is no real way of automatically providing such functionality in random string as it's hard to guess that file path is expected in this particular place (function parameters is different case -- here some hinting mechanics (special annotation) may work).
But .. you can forcibly enable it manually for each particular place (should last until file or project is closed):
Have some code, e.g. $someVar = ['css' => 'aaa'];
Place caret inside aaa string (it has to be 3 or more characters, based on my observations, otherwise option in #4 will not be present -- must be some sort of optimisation/limitation from IDE side)
Invoke shortcut to bring "Quick Fix" menu (Alt + Enter on Windows)
Choose Inject language or reference from appeared menu
Choose File Reference from next menu
Start using it (Ctrl + Space)
EDIT: I should also note that I have marked the folder, containing all my resources(ie. CSS, javascript, and images), as the "Resource root".
This does not affect availability of this feature/functionality in any way as "Resource roots" are used for path resolutions/validation and not for actual "offer this functionality or hide it" choice.

Changing code autocomplete in WebStorm

WebStorm have specific JSX code autocomplete for React.js. It goes like this:
div. + Tab => <div className=""></div>
But I'm using SCSS, so I need to change autocomplete from className to styleName:
div. + Tab => <div styleName=""></div>
You can override this default behavior by creating what Jetbrains calls a "Live Template" (this feature exists in other Jetbrains products as well).
First navigate to the Webstorm Preferences. On the left you'll see a tree structure showing the preferences listed by category. Expand "Editor" to find "Live Templates".
Once you select Live Templates you're presented with a tree structure on the right that displays the Live Templates currently enabled.
On the far right side of this table you'll find a small + button which allows you to create your own Live Template.
After you select + -> Live Template you'll need to fill in the Abbreviation, Description, and Template text at the bottom.
The Abbreviation is the characters that you type in to activate this template. In this case enter div.
The Description field can be whatever you'd like to describe this template, it has no functional impact.
The Template text section is the replacement text. In this case I would use
<div styleName="$END$"></div>
Note that $END$ is a variable that puts the cursor in that spot after the live template is activated.
Lastly you need to specify which file types the Live Template should work against. Notice the phrase "No application contexts yet. Define" at the bottom of the page. Click on the word Define, in the popup menu that appears expand Javascript to find the option for JSX HTML and check it. If you'd like the Live Template to work in other cases feel free to select additional file types.

What is "overlay" in sublime text editor?

What is the "overlay" in ST and how can it be used? (please indicate default key bindings)
It's just a generic interface element which pops up a list of options and a field for searching them. Examples of overlays include the command palette (Ctrl+Shift+P) and Goto Anything (Ctrl+P).
Do you talking about command which by default binded to "ctrl+;"?
As far as i know it works like find(ctrl+f), but overlay can search for one word only.
For example we have this file:
Someone correct my english pls
If we will use find command we could look for more than one word like "my english".
But if we gonna use overlay we could to search for "my" or "english" only.
We can't search with overlay for "my engligh" cuz here is more than one word.
Sublime Text can read settings from multiple configuration files.
The default order is described here.
Packages/Default/Preferences.sublime-settings
Packages/Default/Preferences (<platform>).sublime-settings
Packages/User/Preferences.sublime-settings
<Project Settings>
Packages/<syntax>/<syntax>.sublime-settings
Packages/User/<syntax>.sublime-settings
<Buffer Specific Settings>
The latter configuration files override ("overlay") the former, allowing you to have more specific settings for certain programming language, project, etc.