Add many folders on same project with PhpStorm - ide

I use Sublime Text and I want to switch on PhpStorm. I want to add several folders on same project in PhpStorm like Sublime Text.

Use the Add Content Root in Settings | Directories:

Related

IntelliJ is treating all my files as text files

I created a file with an invalid extension (.jjs) from my sticky keyboard.
I deleted this file
all the icons for all my files turn into text icons. I lose my colour-theming, no variables are highlight, everything is like a plain text file.
How do I fix this? I can't find anything in the help docs
I am currently running IntelliJ 2017.3.2
I solved this by going to preferences -> editor -> file types -> text and removing ".js". Then adding ".js" under javascript files.
You do not have the directory marked as a source directory, hence it is not treated as a directory containing sources.
Either right click on the directory and then "mark directory as->sources root" or go into the module options and from the modules->sources tab mark the directory there.
got to file > project Strucutre click on modules and tab Sources select the directory where is your sourceCode (here src) and mark as Sources

How to hide all executable files in project list on JetBrains IDEs?

As suggested here I managed to hide from my project list all *.o and *.lo files (e.g. myprogram.o) on CLion. Is there a way to hide also executable files (e.g. myprogram) without having to type down all their names? Maybe a wildcard?
Yes, you can use wildcards in Settings | Editor | File Types, ignore files and folders.

JetBrains Products: Create a file that includes all shortcut keys

I want to customize shortcut-keys in one JetBrains product, and I want to save these customizations in a file, and use it in all JetBrains products (so I won't be able to customize it again). DO you know whether it's possible?
Your keymap changes are already stored in the .xml file under config directory, keymaps subdirectory.
You can copy this file manually, use File | Export Settings / Import Settings or use the Settings Repository to share it between the IDEs.

Show .idea folder in PhpStorm project tool window

PhpStorm hides the .idea folder in the project tool window by default. However, I'd like to show it in order to inspect the files and add/edit a .idea/.gitignore file to include and exclude specific files from version control. I have searched for project configuration options in order to unhide the .idea folder, but haven't found a way.
I could just use another editor to manage the files in the .idea folder, but I'd like to use the git-integration of PhpStorm to manage these files.
For .idea there is dedicated registry setting for it as well (it is enabled by default for me, in PhpStorm at very least)
Help | Find Action... and look for registry (or via Maintenance Ctrl+Alt+Shift+/ on Windows using Default keymap)
Once inside -- look for projectView.hide.dot.idea entry
Adjust accordingly (before leaving window -- ensure that new value is accepted properly -- e.g. focus another entry)
Took from
As of PyCharm 2022.2.2, this does not appear to work. After trying various ways of unhiding the .idea folder I had hoped this would be it.
edit:
While the registry setting did not work, removing the .idea folder from the Settings/Editor/File Types/Ignored Files and Folders did work!

Sublime Text Indentation Settings Being Overwritten By a File

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