Brackets on Windows 7: How to set the default directory for file open/save? - windows-7-x64

While this question may have a correct answer for other OSes, it doesn't work for Windows 7.
The problem is that Brackets doesn't remember the last used directory and the file open/save dialog is constantly shown with the localized version of "Getting started" example.
How to reproduce:
Use Windows 7.
Create a new empty file within Brackets.
Save as.
(French version)
I was not able to find in the registry any default path (the last position of the editor window is stored in the registry), nor the state.json configuration file mentioned in the other question answer.
Looking at the documentation for showSaveDialog():
initialPath string
The folder opened inside the window initially. If initialPath is not
set, or it doesn't exist, the window would show the last browsed
folder depending on the OS preferences.
I don't understand the meaning of "depending on the OS preferences" either.
There are bugs in various status related to this problem, but they don't seem to be about to be solved:
"Open/Save/Save as" directory defaults do Brackets folder #8576
Save location always set to "Getting Started". Can't use my last save Folder #11181.

Related

VS Code does not see existing file

Apparently VS Code does not list existing files in files dropdown (Ctrl + P command).
Here is what it shows:
As you can see, the file laravel-2019-09-26.log exists in the directory (left bottom), but not in the files dropdown. After I open this file from the Explorer tree, it starts showing in the dropdown.
Am I doing something wrong or does this happen for everyone? Or is this command supposed to show previously opened files only? If so, what is the way to quickly open any existing file in the workspace?
N.B: I have gone through this related question. No one has mentioned this problem, making me think that this might be specific to my machine.
Edit
For future readers, second answer provided by #michaelze is spot on. VS Code by default does not list files mentioned in .gitignore. You can change this setting by going to Settings panel (File > Preferences > Settings) and typing useIgnoreFiles. This will bring up two boolean settings named Use Global Ignore Files and Use Ignore Files. Turn off these two settings and all workspace files will start showing in the files dropdown. Works correctly as of version 1.38.1.
As those files are .log files, I assume, they are maybe mentioned in the .gitignore file? Maybe this can help you? Visual Studio Code - Automatic exclude based on .gitignore
The list you are seing when pressing CTRL + P is called recently opened. When you open one of the files, it was recently open, so it shows up. The CTRL + P menu also has a files results section that lists actual search results from the files you have in your workspace. None of your .log files are showing up in this section (hence the section is not visible).
The laravel-2019-09-08.log file is also missing from the drop down.
I was wondering if maybe the listing is capped to a certain number of files. Try to be more specific with your search. In my version of VSCode, I can search for files using multiple words. Maybe try searching for "laravel 26" to find the file you are looking for?

Unity "player preferences" file format and contents

Upon quitting my application, I use PlayerPrefs.Save() to save the player preferences.
I understand this function writes all the modified preferences to disk.
So, I clicked on Start, typed regedit and opened it, went into HKEY_CURRENT_USER and then Software and then I selected Unity.
So, now I can see the file (is this actually a file?) but I cannot figure out how to open it or see the contents...
Neither double-clicking on it works nor right-clicking on it brings up any menu with options.
How do I access the contents, or perhaps clear/flush it after a while?
You find the PlayerPrefs under:
HKEY_CURRENT_USER/SOFTWARE/[NAME OF THE COMPANY YOU SPECIFIED IN PLAYESETTINGS]/[PRODUCTNAME YOU SPECIFIED IN PLAYERSETTINGS]
If you had checked unity's documentation it is very well explained for each platform here
The exact storage of PlayerPrefs depends on the platform. For Windows it is stored in the registry, as you have seen.
This is not an isolated file for your Unity game. As such, there is nothing really to open. You could edit the registry if you wanted to, but that's not really the appropriate way. Just keep using it via the provided PlayerPrefs API.
If you want to clear your playerprefs, you can call PlayerPrefs.DeleteAll(). This will clear all playerprefs data and would allow you to "simulate" a new user starting from scratch for example.
For Win32 and Win64 builds it is in a Registry file editable from the registry.
In OS X builds it is in a plist file in ~/Library/Preferences These are in plist compliant format and can be edited in the standard OS X plist editor, or a text editor if you follow proper syntax.
In Windows Store builds it is in %userprofile%\AppData\Local\Packages[ProductPackageId]>\LocalState\playerprefs.dat (I don't know the format of this.)
Windows Phone builds store it in the application's local folder, again no documentation on format.
Android and Linux are in xml format, editable with a standard text editor.
The Android config files are package's shared prefs directory and the Linux config files are under ~/.config/.unity3d

Eclipse target definition is empty

For some mysterious reason all the target definition files (*.target) in my plugin project became empty.
I have absolutely no clue how to fix this.
With the information provided in the question it is difficult to guess the reason.
However you can try these
Open target file in Text Editor and check the content.If the size of the file is more than zero then you can see some content here.
If using any SCM tool get the older version of these files.
You can replace the file content in local history. Right click on the file go to Replace with > Local History then choose the older one and click Replace.

Netbeans file cannot be safely opened

I get files from friend who don't use netbeans IDE, when i open file that contain special caracter like 'é','à',... it show me this popup message :
if i say yes it open the file and changes those caracters to '�' like or
Any idea how to open the file safely?
The letters you are mentioning seem to be French. You need to open the file, specifying the original encoding, then save the file as UTF-8
I recently encountered a very similar problem (I have some javascript files in Chinese which translated into similar non-human readable text upon re-opening the file in NetBeans).
My OS: Linux Mint (version 17, Cinnamon; Notepad++ not available and gedit did not solve the problem).
Netbeans Version: 8.0.1
However, I was blessed to have found the history feature! I was able to get a former version of my file restored and backed it up immediately.
To access a file's history simply click on the History button found on the left side of the tool bar between the tabs of open files at the top of the IDE and the actual source code. (You can also right click on the file name and selected History -> Show History). Then Double click on a *Timestamp representing a valid version of your file. Just below the table of Timestamps the old 'backup' file and the current 'corrupted' file should appear side-by-side. (You can preview several historical versions of the file until you find one that works best for you; of course, when choosing a file I suggest one which is still usable and has the most current Timestamp associated with it!) ). Right click again on the 'backup' version of your choice -> Revert from History. Click back on the Source button found right next to the History button.
Finally, to change the default encoding, I applied the fix suggested by Sebas and Danny here:
How to change file encoding in NetBeans?
Please note that the path to the netbeans.conf file is different (at least with version 8.0.1 on my Linux machine). The path on my machine was : ~/netbeans-8.0.1/etc/netbeans.conf.
This saved the day for me and I hope it helps someone else out there! Bonne chance.

Editing hidden files in Netbeans

I currently have hidden files displaying in netbeans 7.3.1. I can even open the files and make changes but when I try to save I get an (Access is Denied) message.
Just to check I tried opening the same file in notepad, attempted the same thing and the save was successful.
I assume it has to do with a permission issue between netbeans and the file on my windows system.
I'm running Windows 7 x64 SP1
I cannot just run netbeans as administrator.
I can't seem to find anything online about this, every link that comes up has to do with simply displaying hidden files in netbeans which I have done already.
The files I downloaded began with a . (.header.html, etc) which I know usually means hidden. In order to proceed my work I manually removed the dot assuming it would allow me to edit the files. It did not, so I went ahead and checked the file properties and apparently it was still considered hidden. I then unchecked hidden and saved and was able to edit the files in netbeans perfectly fine. I wanted to see if I can keep the . and have the hidden field unchecked and it works perfectly fine.
I know the . signifying hidden is more or less linux specific, but in every version of windows I've used it seemed like the . had the same effect. What happened was I copied these files from an older computer (windows xp) so the file must have retained the flag but in windows 7 the . has no influence. I just checked to confirm by creating a file .test.html and the hidden flag was not triggered.
Hope this helps someone in the future.
You can try to remove the hidden file privilege from the files that you want to edit. In the menu bar click organize from there select folder and layout options. Now You will see a lot of options click the ones that say to display hidden files.