Re: vc++ best ide?
On Dec 23, 2:51 am, Gerhard Fiedler <geli...@gmail.com> wrote:
On 2008-12-20 18:07:58, James Kanze wrote:
Does it somehow force the other editor to save the file, if
you've forgotten that? Obviously, personal habits and
weaknesses will vary, but I find forgetting to save to be
one of my biggest problems when I'm not invoking make from
within the editor.
I often use CodeWright, and I have it configured to save files
on loss of focus -- quite handy for exactly this reason. I'd
be surprised if highly scriptable editors like emacs etc.
couldn't be coerced to do this, too.
Now that's a good idea. A quick check shows that vim does have
FocusGained and FocusLost events which can be used to trigger
commands; it shouldn't be too hard to make it automatically
write every time you leave the window. (You need to add a
little bit of code to ensure that it won't try to write files
you're viewing in write protected mode, but otherwise, it's
trivial.)
(Of course, most of the time, it's easier just to invoke the
built in make, which also results in a small window with the
error messages, and allows navigating between the error lines.
But there are times when there's no make file, and I just want
to invoke a command quickly.)
--
James Kanze (GABI Software) email:james.kanze@gmail.com
Conseils en informatique orient=E9e objet/
Beratung in objektorientierter Datenverarbeitung
9 place S=E9mard, 78210 St.-Cyr-l'=C9cole, France, +33 (0)1 30 23 00 34