How to sort files by date created in netbeans? - netbeans-8

The files right now are arranged alphabetically? How to arrange them by date created?

Unfortunately you cannot sort the files in a directory by date created, but you can sort the files within a directory by several other criteria. To do this:
Click the Files tab.
Expand your project and select the directory to be given a specific sort order.
Right click the directory, and from the context menu select Properties.
In the Properties window click the dropdown list for the Sort Mode property.
Select the criterion to be used from the drop down list. The order in which the files in that directory are to be listed will be immediately updated accordingly.
Click the Close button of the Properties window.
Here is a sample screen shot for the src directory of a simple Java application:
Notes:
You cannot set the sort order for all files globally at the project level. So if you wanted to list all the files in your project in (say) file size order, then you would have to individually set the Sort Mode to By File Size for every directory in the project.
The description for Sort Mode on the Properties screen (as shown in the screen shot above) states "Determines how the objects in the package should be sorted", but that is only meaningful if the directory selected is a package. However, you can still select and sort non-package directories such as nbproject.

Related

Intellij vcs plugin, view changed files AND file changes in the same window

I normally do git diff for this but want to leverage the intellij gui.
The Version Control tab just shows me all the files that changed:
To view the actual changes I have to select a file and choose "Show Diff".
This opens another window. Now from this other window if I want to see changes for another file I have to click this button then open the other file:
I don't like that. Is there a way to have this in the same pane? Where on the left I see a list of the changed files and I just have to select the file to see its changes? Otherwise its very clunky and unusable for being able to see a tree of changed files and selecting the one's changes I want to see
Just found it, I wanted "preview diff"

How to show arbitrary project in IntelliJ?

I have very custom project (including Matlab and other languages, including java maven projects soemewhere deep below) under Git control and would like to use IntelliJ as editor and version control UI. I have created "empty" project and fed root directory to wizard.
Now I see only top-level files in Project pane with no subdirectories shown.
Is it possible to show everything?
You will need to add a module for the files to be visible:
Select File > Project Structure > Modules
Use the + symbol and select Import Module
Navigate to the root you wish to view and then OK
Select Create module from existing sources then Next
Next you will see a screen telling you source files have been found and their associated paths, simply select Next
Lastly you will see a screen listing any frameworks which were found, select Finish
You will now have your project with subdirectories visible.
EDIT
If you wish to add files which are read only and not intended to be built alongside your source code then:
Go to Project Structure
Go to the Modules menu item and select your new module
Find the Mark as menu and deselect all items
More info here
Intellij will now ignore these files when compiling etc
You could also investigate adding different content roots

How to create a file in a specific directory in Rubymine/PHPStorm/other JetBrains IDEs without leaving the home row

Currently, I am doing the following:
cmd-1 to go to the project structure view
Move to the arrow keys (not on the home row - I want to avoid this step), or, (horrors!) the mouse to navigate to the folder I want to create the file in
ctrl-alt-n to open the new file dialogue, which always created the file in the selected directory
Is there a better way to specify/move to the directory without having to use the arrow keys/mouse so that I can stay on the home row?
I have tried:
Moving to the root of the project structure pane using pageupand typing the name of the directory - this is good, but pageup is way off the home row. Also it often selects the wrong folder (e.g. the one in /spec, not the one in /app) and I can only get to the right one with the arrow keys again. There seems to be no way to type app/controllers as it doesn't process the slash as a directory separator for some reason.
Using the navigation bar via option-pageup, moving all the way left with the left arrow, then either navigating to the right directory with other arrow keys, or using ctrl-alt-n from the roor and typing the full path, but this is also way off the home row and no faster.
Type ⌘+SHIFT+O (or CTRL+SHIFT+N if you are using Linux/Windows keymap) to open the Navigate to file dialog (or hit SHIFT+SHIFT to open the Search Everywhere dialog).
Type the name of the directory you want to create the file in. Note that the directory name must end with / in order for IntelliJ to know that you want to open a directory not a file.
You can type just part of the path, such as webapp/resources/
Hit Enter and the selected directory will be opened in Project view.
Then you can use ⌘+N (ALT+Insert) to create new file as usual.

VS 2010: How can I change the order of the Project Properties>Settings?

I have dozens of application settings and I'd like to view them in a different order than they were entered. Is it possible to change the order?
I found the entries in the app.config file, but changing the order there does not make a difference within Visual Studio.
I see what you're trying to do....
Follow these steps.
1). Right click on the Settings.settings file located in the Properties folder of your application.
2). Click "Properties"
3). When the Properties window pops up, select the text for the "full path" of the Settings file, and copy it.
4). Open Notepad.
5). Go to File -> Open in Notepad
6). Paste the previously copied full path to the settings file.
7). The file should look something like this:
8). Re-order the nodes marked "Setting" to put them in the order you wish them to be in. For instance, if you want "Setting" to appear before "Jeremy", change the file to look like this:
9). Save the file. Next time you reopen it, it should be in the order you want.
Alternatively, I would create a prefix for your commonly changed settings, and you can actually sort the list alphabetically by setting key name.

is this problem resolved? image view with folder reference

Anybody know a workaround for this problem described under:
"When you add the folder as a reference ("blue folder") it adds that folder to your bundle and not just the files in that folder. This means that when you want to reference a file in that folder, you have to reference it by doing foldername/myfile.png (because you have to dive into that folder, instead of just files in the root of the bundle).
I haven't found a way around this, so if you need to reference a file in a folder like that - be it in IB or a method like imageNamed: you need to do foldername/filename otherwise it won't be found."
It works when I create groups instead of folder references though.
Oh and I was wondering, if I add a folder with pictures in it with "Create groups for any added folders" selected, is all the structure going to be lost and everything will be on the root in my app bundle on the phone? Because if I go with the finder in my dev project, I can see that xcode copied my folder with all the pictures in it. But if it's true and no structure is kept, it means that I can't have two images with the same name in different folders in my dev project, correct? and even if all my images are in a folder "images" in my dev project, I still access them directly (foo.png not images/foo.png) in xcode, right?
EDIT
OK after adding the User paths (thanks to #Matthew Frederick) I can now see the filename of my images in the dropdown of IB and they show up on the interface! Problem is, it does not add the folder in the dropdown (I only see filename.png not images/filename.png), so when I compile, it looks for filename.png instead of "images/filename.png", so it does not work. I have to put images/filename.png manually in the IB dropdown, but then the image does not show in IB...
Interface Builder will only look for potential graphics/media in your target's header search paths, so if you want access to anything that's not loose in your project folder you'll need to add those paths.
Fortunately it's easy.
In the Project Navigator click on your project, and then in the main area click on your target.
Click the Build Settings tab and scroll down to the Search Paths section.
In the User Header Search Paths subsection double-click on the area in the Project column (3rd column over) and a small dialog will appear:
Click the + button, then type the path to your added folders, relative to the project's base folder, then click Done. The paths should be specified in the form of /yourPathName.
Poof, now IB can see the graphics inside the folder, and will present them as "folderName/imageName" in it's various dropdown menus and such.
Note: This is also true for .h and .m files and anything else inside a folder inside your project's folder: adding paths tells the compiler other places to look (hence the folders you see in my screenshot, "Human Data Classes" and "Machine Data Classes," where I keep my Core Data class files as created by mogenerator).