Is it possible to format a whole project containing different files (like .java , .js, .jsp files) at once in eclipse.
If any one know please tell me it will save my most time.
thanks in advance
Select the project the Source -> Format
Related
Today I opened netbeans after a month of not using it, and when I opened it all my program tabs with file names were italicized. This makes it a class like println, but the classes I am working on are my own files, and now I can't edit it.
How can I make them read and write files again?
Italized file names mean that the files are read only. Are those files located on your computer or on a remote server? Did you have write access to project files? Do you have them as .java, .class, or .jar? To begin with right click on the tab, use select in projects and see what is selected.
I've been starting using Eclipse Kepler and I found that the sort of files in my project is disordered. Please refer to the screenshot:
The files are sort by file name instead of file type. I expect the folders come to the top. Can someone help me to this updated?
In Navigator View, you can change the sort order.
In Eclipse you can format the whole source tree. You can format the whole project by right clicking it -> Source -> Format. You can do the same for sub-folders. I want to be able to do this automated for a specific set of sub-folders in my project, is there a way?
You can have the formatter run automatically on saving files, but the formatting is only applied to the edited files then (not a specific folder).
However, I do not see any good reason to not format all sources of a project the same way, which is why I hope you can take that as solution. :)
So i want to format a bunch of files that i have to a certain standard. The problem is, there is A LOT of files. Is there anyway to have Eclipse open a file, hit CTRL+SHIFT+F (to format the file), save it, close it, then open the next file and repeat that process through a directory that i specify?
I don't have any experience with scripting so i have not even attempted doing something like this. I looked into plugins for Eclipse that could maybe do this but i really didn't get anywhere.
Any help is appreciated.
Thanks
You can right-click on any source folder in the Package Explorer (including the root of the project) and select Source > Format, or Source > Cleanup (which gives you even more control than a simple format)
You can right click on a folder in the Navigator or Package Explorer view and select Source -> Format. This will format all the files in the selected directory.
Does Aptana have a file diff tool? Given it's a fairly standard dev requirement, I'm surprised there isn't one embedded in the IDE already. Does anyone have a good solution to this?
I haven't had much experience with eclipse but seeing that Aptana is built as an Eclipse plugin, would other Eclipse plugins be compatible?
Thanks!
--- Answer: (because it won't let me answer my own question for 8 hours) ---
Annnnnnnnd wouldn't you know it, after months of ruing the lack of file diff every time the need has arisen, I've just found the functionality within Aptana.
Select 2 files in the various file lists within Aptana via CTRL+left click (i.e. the Project Explorer or Navigator panes)
right click on the highlighted file you want to appear on the left of the diff screen and chose the 'Compare With' -> 'Each Other' option.
I just updated Aptana to the newest release today so I'm not sure if it's a new addition but I'd be willing to bet that it's been there for a long time and I am just a nonce.
Ta for clicking on my question anyway. :)
Aptana does have file diff. It is under Compare With item when you right click a file in your project. Select two files and use Compare With > Each Other to see the diff between two local files. You can also compare your files with remote sources if you use synchronization or source control.
In case someone ran to the same situation as mine.
I can't seem to compare a file from the Local Filesystem folder and the project folder.
What I did is select both files under the Filesystem folder.