Save a s ingle file

i didn't find an option to save a single file.there is only saveall option.it doesnt even ask whether to save a file or not while closing file,it saves automatically all the files.

can any one tell how can i save a single file

14 comments

Hello Madhoo,

i didn't find an option to save a single file.there is only saveall
option.it doesnt even ask whether to save a file or not while closing
file,it saves automatically all the files.

can any one tell how can i save a single file


It's not possible.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

of course i'm using the evealuation copy of intellij.do You meant to say is there is any option such as Save As,Save( a single file),But i dint find these options.

Thanks

0

Hello Madhoo,

of course i'm using the evealuation copy of intellij.do You meant to
say is there is any option such as Save As,Save( a single file),But i
dint find these options.


There are no such options.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Because IDEA has the ability to change so many files simultaneously in large refactoring actions, and change them without ever opening them, single file saves don't make very much sense. In recognition of this, IDEA reserves the right to save your any of your files literally whenever it wishes. It's actually quite nice to never have to worry about your file's save statuses, once you get used to it.

"What if I don't like some changes I made, and want to roll them back?", I hear you say. Well, for that IDEA includes this amazing feature called the local version control system. Everytime it saves your files, IDEA actually saves a diff of your file from it's previous state, and saves that as well. You can see the entire edit history of your files (going back some configurable number of days), see the changes you've made, and roll back any change. In rules triumphantly, and more than makes up for the temporary disorientation caused by lack of single-file save.

--Dave Griffith

0

Hello Dave,

Because IDEA has the ability to change so many files simultaneously in
large refactoring actions, and change them without ever opening them,
single file saves don't make very much sense. In recognition of
this, IDEA reserves the right to save your any of your files literally
whenever it wishes. It's actually quite nice to never have to worry
about your file's save statuses, once you get used to it.

"What if I don't like some changes I made, and want to roll them
back?", I hear you say. Well, for that IDEA includes this amazing
feature called the local version control system. Everytime it saves
your files, IDEA actually saves a diff of your file from it's previous
state, and saves that as well. You can see the entire edit history of
your files (going back some configurable number of days), see the
changes you've made, and roll back any change. In rules
triumphantly, and more than makes up for the temporary disorientation
caused by lack of single-file save.


Excellent answer Dave, thanks a lot. I'll put it into the KB if you don't
mind.

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Also, Refactor | Copy can be used instead of Save As...

--
Serge Baranov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


0

Go for it. I didn't even realize you guys had a KB.

--Dave Griffith

0

As you pobably know by now, it doesn't have an individual file save.

A Jetbrains bod told me the same thing about 2 or 3 years ago, and I thought that was such a dumb thing to leave out, that I was ready to de-install IDEA straight away.

But he said it wouldn't hurt to give it a try it for one day, and see how I get on.

Well, a couple of years down the line and I'm still here, and there is still no file save button.

Just use the local history; it's ten times better.

0

Ironically the OpenAPI does allow you to save a single file. Though I do agree there is no need to have a single file save from GUI.

Rick

0

While the Local History is very useful, I have found on occasion the need to rollback an operation that affected multiple files. With the current Local History I have to go to each file that was affected and roll it back. It would be really nice if Local History were to track revisions like Subversion does -- each revision represents the state of the entire project.

What do you think? Is it possible? Should I file a JIRA request?

Ciao,
Gordon

0

View > Recent Changes... (AltShiftC) is an excellent solution for this
problem. And you van view the Local History for a module or directory too.

Bas

Gordon Tyler wrote:

While the Local History is very useful, I have found on occasion the
need to rollback an operation that affected multiple files. With the
current Local History I have to go to each file that was affected and
roll it back. It would be really nice if Local History were to track
revisions like Subversion does -- each revision represents the state
of the entire project.

What do you think? Is it possible? Should I file a JIRA request?

Ciao, Gordon

0

View > Recent Changes is useful, although the "External Changes" entries are somewhat cryptic. I suspect they're CVS updates and they really should say so if they are. Also, the popup list for View > Recent Changes is awkward.

I tried viewing Local History for a module but it was greyed out. It worked for a directory, however. This is the view I think I was asking for, it's just a pity I can't see it for a module or the entire project.

I'm also not sure why both View > Recent Changes and Local History exist. It seems the former is just a project-wide form of the latter, using a funny UI construct.

Ciao,
Gordon

0

Manual file saving is an outmoded construct in IntelliJ. Such things are left to lesser IDE's, like Eclipse. :)

0

Please sign in to leave a comment.