PhpStorm - Where can I see if I changed a file? - phpstorm

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 :)

Related

How to align code, in PhpStorm / Intellij, using tabs (and not spaces)

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.)

Set terminal font size in PhpStorm?

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.

Razor pages (cshtml) render HTML markup without the classic colors

I'm working on a web project in Visual Studio 2013 and I'm not able to see the classic colors for HTML tags (Maroon, Blue and Red). Instead all the HTML is black, except the Razor blocks, they show ok.
When I go to the Fonts options the colors are configured correctly but the editor seems to not consider the configuration values.
Any help would be appreciated.
Do you mean that the source code doesn't have syntax highlighting within the Visual Studio editor, outside of the Razor blocks?
It's possible that your default editor for cshtml files got switched to the wrong one somehow. Try right-clicking one of the cshtml files in question, doing an "Open With...", and choosing "HTML Editor".
If that doesn't work, try disabling any extensions you have installed that touch the HTML editor (e.g. Web Essentials, Productivity Power Tools, Indent Guides, etc).
If that doesn't work, I'd try resetting your settings from Tools > Import and Export Settings... > Reset all settings. You can back your settings up first, so you can restore them afterward if resetting them doesn't help.
Finally, if none of that works, I would try running a repair on Visual Studio from the installer. I've seen that fix strange issues like this before.

Changing Spaces Per Tab in PHPStorm

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.

phpstorm unsaved files color

How do I see if a file has changed on PHPstorm?
I need to sync the files on ftp and that happens when I save (ctrl+s), but if I have many files I can't keep track of them, how do I see if there are changes.
I have tried with the color, but that didn't work.
Thanks
File | Settings | Editor | General |Editor Tabs | Mark Modified tabs with asterisk
I was looking for the asterisk next to the name as the accepted answer gives you. During my odyssey to find that answer I also found another useful way to display changed files, in the project view click on the down arrow next to the project name and select "Changed Files".
in OSX, On the top toolbar, go to PHPStorm > Preferences... > Editor > Editor Tabs, and then select the box for Mark modified tabs with asterisk.
(then hit OK at the bottom)
PhpStorm 2019.2
Now is in Settings | Editor | General | Editor Tabs | Appearance | Mark modified (*)
More