This is how I see a patch file (file.patch) with Sublime Text:
And here with PHPStorm:
There is any plugin to see a patch file nice like Sublime Text with PHPStorm?
Not currently possible, please vote for IDEA-74005
Related
When working with Java, Ctrl+Alt+L formats your highlighted code. Is there such a command when working with non-Java files like HTML? The same command doesn't work with HTML.
In Ultimate edition same keys (Ctrl+Alt+L) works for HTML as well. I suppose, community Edition doesn't support it out of the box.
Check settings: Settings -> Editor -> Code Style -> HTML (If it is not present, try to install some plugins for HTML support)
For Mac
Use Option+Command+L for Formatting HTML files.
You can check/customize it using:
command+, for a search for Reformat Code.
Use Ctrl+Alt+S for Formatting HTML files.
I've added some custom file masks, and sometimes misspelled a file masks and PhpStorm remembers all of these, which is annoying.
How can I clear the list of file masks in the search free text modal?
You will need to edit the config/options/find.xml file in your PhpStorm IDE settings directory.
I use WebStorm v2020.3 on OS X (10.14/Mojave). I don't know if it will be of any use to anyone but the answer above helped me figure out where this file could be found. I found that editing ~/Library/Application Support/JetBrains/WebStorm2020.2/options/find.xml and then restarting WebStorm was what did the trick for me.
On Windows 10 the file is located at %APPDATA%\JetBrains<product>\options
I am working on a project where tab size is supposed to be 4 and tabs should not be spaces. I updated my Preferences.sublime-settings file to include
"detect_indentation": "false",
"tab_size": 4,
"translate_tabs_to_spaces": false,
When I open a new file these settings are set to how I want and everything works. However, if I open an existing file (scss or html) that has indentations as 2 spaces, my Sublime settings are overwritten and indentations change to 2 spaces. If I click View > Indentation I see that Tab Size is set to 2 and Indent Using Spaces is enabled, even though my preferences should be the opposite of that.
If I manually change Indentation via View > Indentation to Tab Width: 4 and deselect Indent Using Spaces, this works until I save the file, at which point the settings revert to Tab Width 2 and Indent Using Spaces turned on.
How can I force Sublime Text to honor my indentation preferences and not be overwritten by another file. I would assume that Sublime is detecting the indentations on the page, but I've turned that setting off.
Here is my preferences file showing that things should be working:
Here are the messed up settings for a scss file. All I did was open it:
I don't think any plugin is causing this, I disabled most of them and was still experiencing this issue. However, for reference, here is a list of all packages I have installed:
Alignment
BracketHighlighter
Capybara Snippets
ColorPicker
Dotfiles Syntax Highlighting
EditorConfig
Emmet
ERB Snippets
Gem Browser
Gist
Git
GitGutter
Haml
jQuery
JSHint
Package Control
Pretty JSON
PyV8
RSpec
SCSS
SideBarEnahancements
SublimeLinter
Terminal
TrailingSpaces
Thanks in advance for any help.
So I figured this out by completely uninstalling Sublime Text and all associated packages and settings, then reinstalling the app and one-by-one reinstalling my packages. It turns out that one of my packages, EditorConfig, was overwriting my Sublime Text style settings.
EditorConfig is actually a really cool plugin that allows a number of developers working on one project across multiple IDEs to have a consistent style by defining indentation type, size, charset, and other settings.
The answer to my problem was that in the particular project directory I was working some of the node modules I had downloaded had .editorconfig files that had indentation set as size 2 and spaces instead of tabs. I had to either uninstall the EditorConfig package from my Sublime Text or create a new .editorConfig file in the root directory of my project. This is the .editorConfig file I created that fixed my problem.
# top-most EditorConfig file
root = true
# 4 Tab Indentation
indent_style = tab
indent_size = 4
When a file is loaded, its contents are examined, and the "tab_size" and "translate_tabs_to_spaces" settings are set for that file. The status area will report when this happens. While this generally works well, you may want to disable it. You can do that with the "detect_indentation" setting.
This might be helpful: https://www.sublimetext.com/docs/2/indentation.html
I installed Sublime Text 2 and Node.js.After that i install less with that command npm install -g less with command console.When i install Less2CSS plugin and try to compile less file then i am getting error The compress option has been deprecated. We recommend you use a dedicated css minifier, for instance see less-plugin-clean-css.I found the same issue on here also.But i didn't understand what and which file to change.please help me if anyone have same issue.I attached the screen shot for more understand the issue.Thank you everyone.
To fix this issue, go to Sublime Text and:
Go to Preferences > Browse Packages
Open the Less2css folder
Open the lesscompiler.py file in a text editor
Go to line 184 and change this
cmd = [lessc_command, less, css, "-x", "--verbose"]
to this
cmd = [lessc_command, less, css, "--clean-css", "--verbose"]
Save the file, restart Sublime Text, and attempt to save your LESS file again.
It means that the option is not supported. it recommend you use a dedicated css minifier.
You can change the option.
Via "Preferences" -> "Package Settings" -> "Less2Css" -> "Settings - Default".
change ["minify": true,] to ["minify": false,]
and then, if you want to minify the css file, please use a dedicated css minifier to do this.
Not for the code editor but the IntelliJ menus and dialogs, fonts are getting bold.
My question would be:
How can I make my IntelliJ IDE menu and dialog fonts not to be bold.
Just got the same problem after installing some package. This is a really late response I guess :)
Two options to resolve it:
1- Setting->Appearance: check Override default fonts by (not recommended), and change it to your liking.
2- I tried this command to remove this font, because my thunderbird was also effected:
sudo apt-get remove fonts-unfonts-core
cheers.