Fail to restore CSS file in PhpStorm - windows

While I was working in PhpStorm on a website computer restarted and an error appears. I using Windows 10. After restart CSS file was empty and I lost my work. The CSS file appears like it still have 9kb, but in PhpStorm it is empty.
I've tried to restore from PhpStorm, but the Local History is empty too.
Can I restore it? If I can, how can I do it?

Did you save the file prior to the crash? If not, take a look at PHPstorm's autosave functionality.
Also, and I don't mean to be condescending here: frequently saving your stuff and proper backups are important.

Related

How do I delete a font in IntelliJ?

I am trying to replace the Inconsolata font with its older version in IntelliJ (the newer version added things that I'm not happy with)
IntelliJ seemingly refused to remove a font that I wish to be removed.
The font in question is Inconsolata, and the picture below shows me trying to delete it. It works, at this stage.
However, after doing that, and restarting the PC, IntelliJ insists that the font exists.
It will give a strange name to the font, but the entry exists. This causes problem on my end - there's some reference caching the IntelliJ is doing, and if I were to replace the font with the older version, it'll still be using the newer cache, but will give a strange output if the cache is pointing to something that doesn't exists.
I've tried
Deleting the settings folder
Reinstalling IntelliJ and then restarting
Is there a way to delete a font in IntelliJ properly?
It looks like Windows doesn't properly delete a font. Unfortunately, this causes problems for some apps.
The fix
Head towards C:\Windows\Fonts from your terminal. Do not use a file browser, as that will open up the control panel item.
Delete all traces of inconsolata (There was Inconsolata-Bold.ttf, Inconsolata-Regular.ttf, inconsolata.otf) using a terminal
Now your IDE will no longer have the Inconsolata font.

Atom UI issues after installation and reinstallation

I am having issues with using Atom text-editor. I have used it before on my system and all was fine. However, opening it today, I had the UI looking like this:
I have uninstalled it and reinstalled it, but to no avail. I have also deleted the local data file after installation and I keep getting the same UI.
Any help would be awesome!
If you are wanting to get rid of the panel(s) at the right side of the window, that is your debug console. Just click the "x" at the upper right corner (in the light-gray section, not in the application title bar) and it will go away.
If that is not what you meant, you need to clarify the question.
I managed to fix it. I was not expecting the above layout after a fresh reinstall. This was what I expected (and am used to).
Somehow the .atom folder in C:\Users\%USER%.atom was completely hidden and read only, so I had trouble locating it. After using the terminal to access the folder, I inspected discovered its properties. After removing the hidden and read-only attributes, I deleted the folder and reinstalled Atom and it managed to fix the issue.

Files not uploading via Aptana 3

I'm new to Aptana 3. I recently switched from using an FTP (Filezilla) and text editor just to speed the file editing process up a bit.
I'm dealing mainly with Wordpress sites on a shared Godaddy hosting account, and am having some trouble uploading the files I have edited via Aptana to my live site.
i.e. I've edited several lines in my "main.css" file. I save it in my "Project Explorer" window in Aptana, have my FTP connection all set up and working, and click the "Upload" icon. I refresh my browser and nothing has changed, and I can see the website is still pulling in the old css. I've also tried "synchronizing" my files and hitting the "Publish" button, but that doesn't work either?
I've also tried just editing the file in a new Remote Connection tab, but no joy either.
I've hunted all over for simple walkthrough for deployment or file sync guides for Aptana, and watched a few video tutorials but nothing has worked so far.
Hold Control+F5 for a few seconds in your browser. You probably are just running a cached version of the CSS in your browser. That should prune it.
I had the same problem. What I found I had to do was an initial synchronization, I know you mention that you did this but it may be that it didn't fully sync as its not always clear what is going on with the Aptana sync.
What I did:
Make sure your Project has a connection in it and that it points to the server location that you want to sync with
Select the Remote tab and right-click on a file within the chosen connection, choose File Transfer...
This will open the sync window and it will initiate a compare, this is where confusion set in for me, if the folder structure is not identical it will propose to create and delete lots of files. I found I was deselecting items to be safe but meant that it did not correctly sync. Make sure you are syncing from the same root level and then let it do a full sync, this seems to register or record a link between the local and remote files.
Run the sync. when it is complete you will now be able to upload individual files successfully from the Project tab using the upload icon (before a successful sync this will not work - even though it looks like it is doing an upload).
Hope this helps.

How to make VS2010 quietly reload files in editor

I'm using sass for a project. I keep the CSS file open sometimes, but every time I save the .scss file VS asks me if I want to reload the CSS file, which I do. Is there any way of telling it to always reload the file type without prompting?
In Tools/Options, navigate to Documents and check "Auto-Load changes, if saved."
EDIT: note that this will affect all files; as far as I know it's not possible to enable this selectively. I'm sure an extension could change that!

Where is the Visual Studio layout saved?

I am having problems with VS2008 moving the windows around and losing tabs when I close it and open again, or when I go from coding to debugging and back. (Yes, I know that it is supposed to save different layouts for coding and debugging). I have tried exporting my settings, but it informs me helpfully that
Your settings were exported, but there were some errors. Error 1: Some command bar settings were not exported correctly due to an internal error.
Importing them again gives a similar error, and doesn't solve the problem. Does anyone know where VS saves the layout info? Or how to reinitialise the layout, without changing all my other settings?
Some of the layout information is stored in the registry for the current user.
HKCU:\Software\Microsoft\VisualStudio\9.0
If you're really having a lot of problems you can take the desparate step of deleting or renaming this key. Personally, I would rename it, start VS and see if that fixed my import export settings problem.
This is what you're after:
Tools > Import & export settings
You will need to make it work though. Maybe manually saving it from
My Documents\Visual Studio 2008\Settings
Export your current settings. Don't choose to export the layout settings.
Reset IDE settings to your favorite
Import your exported settings
You might want to try Window > Reset Window Layout. This will reset the windows the way they were configured the last time you imported a layout.
It sounds like you might have a permissions problem trying to export the files.
Another possibility that's a little less likely is that your *.suo files are being versioned, and so when you update your projects your layout for that project is updated as well.
As far as the export bug goes this seems to be a longstanding bug in VS, they can't seem to fix it. When you export your settings uncheck the check box for menu and command bar. That seems to be the one that usually is throwing the error. Then you will at least have almost everything backed up, before you reset all your settings.

Resources