PhpStorm dirs are not showing on tree - phpstorm

I will re-upload my project on my local. But I cannot see my dirs on tree like:
But the other projects allow seen dirs:
I checked my views, tools any settings and return to default settings. But its not showing ?

From the first screenshot it looks like the whole D: drive was used as a project root.
In PhpStorm do File > Close Project, then go to D: and delete .idea folder, then go to PhpStorm, press Open and select D:\UserData\Home\b****lu-app directory, then press OK.

Related

Reconfigure each time - PhpStorrm

I am making all the settings of the PHPStorm software and when i reset, I set up FTP settings again every time and I can not see the last open files
For example, each time; Tools > Options > "Upload changed files automatically to the default server" .. I am setting this option every time.
I've never experienced this before.
What could be the reason for this?
Such problems may occur if the project is located on OneDrive; you can move .idea files to a local folder that is not part of OneDrive sync, keeping sources on OneDrive: create a new empty project in the preferred location on your local drive, and then link your source folder located on OneDrive to it by adding it as a content root in Settings | Directories, Add Content Root

File doesn't belong to this project - PhpStorm

UPDATE
Asked the question on the PhpStorm site.
When I press Ctr + Shift + N to navigate in my project files it can only find some off my files in the directory. So most off the files do not belong to the project. How to make it so my directory with all the files becomes 1 project again?
Also it looks like some off the files are on C:\Users\Username\Projects\Website and other files are on Z:\Projects\Website
It's a short question I hope I explained it right, and if I need to give more information about something ask/tell me. (also I don't know which tags I have to use)
If someone is experiencing this problem with the PhpStorm 2021 version, try these steps:
Close the IDE.
Go the project directory and delete .idea folder.
Restart the IDE.
For me, the IDE created a new .idea folder and recognized all files as the part of the project.
Did you try reopening the project? That sometimes does solve my problems.

Sublime not loading "Color scheme - default.sublime-package"

I opened the ~/Applications/Sublime Text.app/contents/MacOS/Packages/Color Scheme - Default.sublime-package with vim and changed some settings in the color theme that I was using. When I then saved the changes and restarted sublime text 3, the changed wasn't in effect (I tried multiple times and double checked everything).
Should you be able to just edit the package without extracting/unzipping anything? I read at different places that you should unzip and then edit, why is that?
Does ST3 read the color theme from somewhere else? Does this apply to all sublime-package files? A short explanation would be nice.
You shouldn't be modifying anything in that folder. The changes you make there will get overwritten by whatever you have in your Packages folder anyways (not the Packages folder you went to). The correct Packages folder you want to go to can be found by doing Preferences -> Browse Packages.
The best way to make modifications to files in a package is to use a plugin called PackageResourceViewer which you can install with Package Control. Once you have it installed, just do the following:
Open up the command palette with ⌘+Shift+P
Type in PackageResourceViewer: Open Resource and press Enter
Use the arrow keys to find the package and file you want to make modifications to and then press Enter
If you'd like to see the entire contents of a package (all the folders and files inside it), just do the following and a folder with the package name will be created in your Packages folder
Open up the command palette with ⌘+Shift+P
Type in PackageResourceViewer: Extract Package and press Enter
Use the arrow keys to find the package you want to extract and then press Enter
Go to your Packages folder by doing Preferences -> Browse Packages and you will see the entire folder for your package.

Recover deleted file from PhpStorm and SourceTree

I have an open project in PhpStorm that I manage using SourceTree. I was trying to remove some image files from a commit using SourceTree, but accidentally selected a file that should not be deleted. I haven't changed anything (in either PhpStorm or SourceTree) since deleting the file. I tried to do Ctrl+Z in SourceTree but nothing happened. I then checked in PhpStorm Vcs -> local history, but it didn't show the file. How can I recover this file?
Try to right click on project main folder in phpStorm and select Local history / Show History in context menu (not vcs / local history). The file should be at the list as "Deleting".
This is documented by JetBrains here
TL;DR

How to disable version control in phpstorm?

I am playing around with phpstorm and somehow I activated version control. I don't need it. Now all my tabs are different: orange text on gray background. All files in the file view are orange. How do I disable version control?
Go to Settings -> Version Control and remove the folder from which you would like to remove version control tracking (coloring tabs etc.) It will naturally not remove version control from your project (as in deleting the .git/ folder for instance).
The ultimate way is to disable all version control plugins (under Settings -> Plugins): CVS Integration, Git Integration, GitHub, hg4idea, Perforce Integration, Subversion Integration. After restarting PhpStorm Settings -> Version Control tab will be gone.
Note that this will disable version control for all of your projects.
You can just remove vcs.xml from .idea folder and then restart PhpStorm
In phpStorm 2022.1.3+, go to
Preferences > Version Control > Directory Mappings
Then remove the directories you don't want to watch, as Greg suggested.
Go to Settings -> Version Control and remove the folder from which you would liek to remove version control.
I have not enough reputation to +1 Greg's answer or comment, but... for those who are interrested : the same goes for Webstorm.
I had this problem and I used from 2 of notes in these answers in these page together.
As Greg has mentioned in one of replies, your git repository is in .git sub directory inside directory that you want to manage it with version control system. When you define a git repository, PhpStorm automatically generate it and with creating this sub directory, it adds a file for handling mapping between itself and version control system. It calls vcs.xml and it's located in .idea sub directory.
It's not enough to remove only .git directory. When you remove .git, you will get an error in PhpStorm every time that you open your project due to not matching vcs.xml for mapping between PhpStorm and git repository of your project. So after removing .git directory, you must also remove vcs.xml files from .idea and now you won't have any error or warning in your PhpStorm.
It doesn't need to restart PhpStorm at all and after this, colors of all of files that was mentioned in questions return to normal colors in PhpStorm.