Remove empty folder from SublimeText3 - sublimetext

I have several empty project folders in the LHS folder section of Sublime.
I right-click and choose 'Delete Folder' but the empty folders remain. Restarting Sublime doesn't help.
I'd rather not un-install it if I can avoid it.
Is this a known bug in Sublime 3? How do I remove these folders?

You need to remove them from the project
(source: wes.io)
If they are sub-folders of another folder you have open, they will always show unless you specifically exclude them with "binary_file_patterns": ["folder-name/"]

Related

Sublime text 3065 sidebar root directory

OK so if i want to create a new project i drag and drop a folder onto the sidebar, after which the contents show up in the sidebar.
My question is, is there any way to hide the root folder (as indicated)?
To clarify, I dont want to have to go inside the 'Wordpress' folder and add the substructure manually to create a project (ctrl+a , drag drop). I just want to be able to drag and drop the root directory (Wordpress in this case) and have it add all subfolders / files without it showing the root Wordpress Folder.
I just find it annoying for example, if i wanted to get into wp-admin the possibility of misclicking and collapsing the entire directory.
No, there is no way to do this. The base folder is the base folder, and is the container which holds all its files and subfolders. If you remove it, you have no way of identifying where the contents are located. If you want quick access to one of the subfolders, just add it to your project.
Additionally, with the latest releases of ST3, mis-clicking the wrong folder is no longer an issue, as Sublime remembers all the open subfolders, and the entire chain will be restored just like it was if you clicked again.

Can't delete or rename files in Xcode 4.6 Project Navigator?

Something has become buggered with my project.
I can't delete files or rename files from Project Navigator view.
It may have something to do with source control? If I highlight 5 files in Project Navigator and hit delete and then move to trash the first file gets a source control "D" marking beside it but all of the files still remain.
Restarting mac/xcode has not resolved it. Any ideas?
Same thing happens to me for a while now.
Using git.
So far I'm able to work around this by deleting the files one at a time, which moves the file to trash but doesn't remove the reference. And then deleting the references again.
Similar problem with adding files to the project and renaming them.
For adding: first move/copy the required file in the project folder to the desired location, and then add from Xcode deselecting the "Copy items..." checkbox.
For renaming: find file in finder, rename IN FINDER, then change the name accordingly in Xcode (or choose the file again from the right panel).
Hopefully we won't have problems like these after moving to Xcode 5.

On add existing item in VS2010, why can't I "add as link" a file from the same project?

I have two folders in my library project, folder A and folder B. Folder A will contain all the real files, but Folder B (and a bunch of other folders) need to contain links to the folder A files.
I tried going Add existing item (go to folder A)-> add (down arrow) -> add as link but the add existing item dialog window just closes and nothing happens. It seems I can add links to files outside the library project though. What's going on here?
-Isaac
For some reason Visual Studio seems to silently ignore possible problems with adding file as a link. I just had the same problem and the solution was to:
Check if project folder already contains a file with the name of file being linked, if so delete or rename this resource.
Visual Studio 2010 seems to cache project directory contents, as (1) was not enough to successfully link the file. Restarting VS helps.
Sound like Visual Studio is crashing for some reason. I just tested this in project that has many folders. I had an images folder and I was able to add as link and image to another folder, so it seems it is possible.
It does add the file to the project but does so to the original location, not the new location.
You can see this if you exclude the original file from your VS project (but don't delete the file from disk) - the file will then get add to your project in it's original location
e.g. if you have folder FolderA\index.htm and FolderB, and you want to create a link to index.htm in FolderB. Exclude index.htm from your project (but leave it in FolderA on the disk) so your project just has two empty folders. Right-click on FolderB and click Add Existing Item, select index.htm from FolderA and click Add as Link. The file will be added to your project but under FolderA (where it resides on disk) not within FolderB which is where you told it to add it.
So looks like a VS bug to me.
As has been mentioned, this is a valid scenario if you have multiple "root" websites within one project but you want to share resources between them
In my case (using Visual Studio 2013) I just had to show all files (button on the top of the Solution Explorer), right click on each file/folder and click on "Include on Project".

Why can't I delete files from my XCode project?

This is probably a very easy question, but I'm having trouble deleting resources from my XCode project. I added them using "Create Folder References for any added folders" so that I could import a whole offline HTML site with its correct folder structure.
Unfortunately, now it has been added like this I don't seem to be able to delete individual files in the structure (it's not available from the Edit menu).
Can anyone help please? Thanks!
That isn't how folder references work. The idea is that its only a reference, you can open files within it and save it from those editors, you can delete or move the entire reference throughout the xcode project, but you can't actually edit it - its read only as far as xcode is concerned. Likewise, you cannot restructure it (move internal files around).
I'm not to sure why apple decided to make this the case, but apparently they have.
If you want to know how one might use the xcode folder system, here's how I tend to use them with my projects:
Whenever I subdivide code into folders, when I drag them into my project I click "recursively create groups for any added folders". If you do this, you any changes you make within xcode will not reflect the actual file itself. As far as I know, there is no way to do this. What does happen then is that when you add a new code file to it, the directory starts off in that file by default. ie, you don't need to navigate to it manually when you create a new file.
I use folder references whenever I'm working with content for an application I'm using. This way, I add all my images, folders, configuration files, whatever - and xcode immediately lists them. The reason I have it within xcode, I can I copy the files into the executables directory by dragging the folder reference into a "Copy Files" build phase.
Thats basically (to my knowledge) how one uses the folder types within xcode - sadly, I don't know how to achieve the functionality you want. You may have to manually delete the folders in finder, which if you do use folder references will update xcode to the change.
I ran into the same issue by using "Create Folder References for any added folders". I wanted to change some of the times but that's not possible. I had added a main folder that had other directories under it. I just had to select the main directory and deleted it and then just add the subdirectories that I needed. You can't make any location or removal changes to the directories that are added this way. -- Jeff
In the project browser, where you're looking at files, right click and choose "Delete". It'll prompt you to either remove the file from the project (leaving the underlying file on the filesystem) or to also move the underlying file to the trash.
I ran into the same issue. Delete the files from the folder directly as opposed to from within Xcode. You'll see the entries turn red under your project. Restarting Xcode should make these red entries vanish.

How to add folders in Source Safe?

I have a static site of html and css files. It has folders on my computers. I see an 'add files' option in Source Safe 8 but it only copies files from the root folder.
How can I get Source Safe to copy the whole folder tree structure and their files?
To copy the entire directory tree, create the root folder ("Create Project") in visual source safe. Then from Windows Explorer select all files and folders you want to add to this new project (folder).
It should prompt you for a comment. Enter your note and click ok. That should add all files and folders.
If you only need to add a folder, drag the folder in to it's root in VSS. It will create the folder in VSS.
I think VSS always calls folders "projects".
Yes, drag and drop the folder, check the recursive box at the bottom where you add your comment for the initial check in. This copy all subfolders and files.
I completely agree with the suggestion of using a better option, however if Source Safe is what you use I believe its in the menus as "Create Project" to manually create folders.
Its been a bit since I've used Source Safe, but IIRC, you should be able to just drag and drop a directory into your Source Safe project and the entire tree will be added.
just drag and drop the folder from explorer into the folder in sourcesafe.

Resources