How can I set the font size in the embedded terminal in the JetBrains PhpStorm IDE? The text is too small. Is this possible?
LazyOne already pointed out where you can change this.
Keep in mind that you have to hit the "Save As..." button next to the colour scheme first in order to create a new colour theme - you cannot change anything unless you create a copy.
PHPStorm protip - if you can't find the settings, just use the search field:
Another alternative is hitting CTRL/CMD+Shift+A and searching console:
After setting the font, rebooting is not necessary, just close then open a new terminal as shown here:
Settings (Preferences on Mac) | Editor | Colors & Fonts | Console Font
NOTE: that you cannot edit bundled color scheme -- you will have to make a copy of bundled in order to be able to make changes.
Related
I am using PhpStorm 2022.2 on Windows 10 with (Settings > Appearance > Theme) IntelliJ Light.
I dont use version controlling (git, svn etc.) in my project.
When I change a file I am used (from other editors) to see some change in the file tab, e.g. the color changes, or there is a "*" beside the filename.
In PhpStorm I don't see any changes in the file tab or else where, if I changed something in the file.
Where can I set this?
I looked through all settings, searched the net, but found only solutions concerning version control.
Settings (Preferences on macOS)
Editor | General | Editor Tabs
Ensure that Mark modified (*) option is enabled
https://www.jetbrains.com/help/phpstorm/settings-editor-tabs.html#appearance
The result:
I found it myself, after searching again with better search words ;)
I found it on PhpStorm Help pages:
https://www.jetbrains.com/help/phpstorm/settings-editor-tabs.html#appearance
So the setting is in:
Settings > Editor > General > Editor Tabs > Mark modified ()*
And after checked it does what I expect :)
I'm trying to setup PhpStorm, so I can simply press: "Reformat Code" ( Option CMD L), before each save - and then it'll make everything look right.
But I have this case, where I don't know how to make PhpStorm make the code right.
This is the code:
As you can see, then indentation is with tabs, but the aligning of the characters are with spaces.
I want it to look like this:
It would be cool to get the solution. But it would be even cooler to be able to figure out, how I could have found the solution myself.
Further info / idea: There is a Php Codesniffer from Squizlabs implemented. So I can fix is automatically by running a sniff fix-command. It would be pretty cool, to be able to automatically setup PhpStorm's Code style settings, to correspond with Squizlabs styles, without having to gradually tune the settings one thing at the time. But I haven't found that functionality.
Solution attempt 1: Read through all Settings >> Editor >> Code style >> PHP
I couldn't find anything that resembled this.
Solution attempt 2: Disable .editorconfig
I've read quite a bit about .editorconfig and it doesn't have these nitty-gritty functions here (as aligning equal signs).
But to make sure, I tried disabling it. Didn't make a difference.
Solution attempt 3: Search setting for 'align' and 'formatting'
But I didn't find anything useful. :-/
Solution attempt 4: Update PhpStorm
I was on PhpStorm version 2022.2.1.
I tried updating to PhpStorm version 2022.2.4.
This is still in progress.
Please show what you have at Settings (Preferences on macOS) | Editor | Code Style | PHP, specifically Tabs and Indents tab.
Checking Use tab character option with unchecked Smart tabs should do just that.
https://www.jetbrains.com/help/phpstorm/2022.3/settings-code-style-php.html#php-specific-formatting-settings-for-tabs-and-indents
(Pro tip: you can copy-paste your code sample in the preview area and start changing the options; the IDE will apply the changes live on the provided code sample instead of the default one.)
After installing inkscape I cannot show my local svg in chrome, it wants to download it instead. How to change this ?
A stab in the dark (you're really not giving enough information)... Start -> Default Programs -> Associate a file type or protocol with a program. Find .svg, click Change Program.
I have a SCSS file I am currently working on. The indentation is 4 spaces, but for some reason PHPStorm only moves the cursor 2 spaces every time I tab. Is there a way to change this? Strange thing is I have other files in the project (mostly JS) and they are tabbed 4 spaces.
Settings/Preferences
Editor | Code Style
Now select your desired language (as it's configured on per language basis) and check the option on the "Tabs and Indents" tab.
If you are using the actual Tab symbol for intents then you will see the changes straight away. But if you use Space then you will need to invoke Code | Reformat Code (or similar Code | Reformat File...) to see the changes in the indents.
In case if you have changed the settings in Code Style but still see the old/different settings being applied: check if you have .editorconfig file(s) in your project and EditorConfig is enabled (by default).
The settings from such a file will overwrite your Code Style settings (it's expected as it's the nature of such files). In this case you will need to edit your .editorconfig file (or disable EditorConfig integration).
P.S. I prefer setting the basic settings (like indent size, indent symbol etc) in the .editorconfig file. It's portable, flexible, and allows setting up different settings for files that do not have dedicated Code Style settings in the IDE.
After applying the settings, the tab will not apply right away. For this to work you have to Code -> Reformat Code
You can set the tab and indent for each language you code in.
What I want
How can I 'build' an HTML file so that it opens in my browser and Sublime Text 2 does not display a build panel?
More generally, how can I interact with Sublime Text 2 settings from my .sublime-build files?
I'm on Mac OS X/Chrome 32.0.1700.102.
I'd like to suppress the build panel in Sublime Text 2 (ST2) on a per-build-system basis. If necessary, I'd be OK suppressing depending on the syntax of the open window. Basically, I want to be able to open an HTML file I'm editing in my browser without seeing the [Finished in 0.01s] output at the bottom of the screen. An analogous question has been asked on superuser.
The setting to change is show_panel_on_build and my HTML.sublime-build is simply
{
"cmd": ["open", "$file"]
}
What I've tried
When I add "show_panel_on_build": false to HTML.sublime-build my builds hang and do not complete (and the panel shows up!).
I also tried installing Better Build System, but then my build stopped working entirely. I did not investigate the issue in detail.
Obviously, I could so something silly like write a script which modifies my User Preferences file outside of ST2, but I'm hoping for a more elegant solution.
Any thoughts (or pointers to appropriate plugins) appreciated. Thanks!