all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Thorpe <rt@robertthorpeconsulting.com>
To: Ken Goldman <kgoldman@us.ibm.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Ways to use Emacs when programming C++ with Visual Studio?
Date: Tue, 02 Dec 2014 20:50:02 +0000	[thread overview]
Message-ID: <87d281g4jp.fsf@robertthorpeconsulting.com> (raw)
In-Reply-To: <m54pl6$qvj$1@ger.gmane.org> (message from Ken Goldman on Wed, 26 Nov 2014 09:55:44 -0500)

Ken Goldman <kgoldman@us.ibm.com> writes:
> On 11/25/2014 6:40 PM, Mike wrote:
>>
>> Thanks for letting me know about autorevert.
>>
>
> Besides autorevert, there's also M-x revert-buffer, which does it manually.
>
>> So I'd make the changes in Emacs, then I would close every file
>> window in VS, save all the files open in Emacs, then tell VS to
>> rebuild everything! Not really much fun,
>
> Tools - Options - Documents - Detect when file is changed outside the 
> environment - auto-load changes if saved.
>
> I assume that Microsoft added that option so their developers could use 
> emacs.  :-)

Many years ago when I used Microsoft Visual Studio I used the same
procedure.  I did my editing in Emacs and used auto-revert mode.  I had
VS setup to revert periodically too.

I found it best to avoid global-auto-revert-mode and setup auto-revert
mode only for the relevant modes (C++ in my case).

Something to watch out for here is that Emacs believes that .h files are
C files not C++.  Microsoft don't use the .hpp file extension.  If you
use VS a lot it's best to make .h files automatically choose C++ mode.

I don't have any code for this unfortunately, I deleted it from my
.emacs years ago when I stopped using VS.

BR,
Robert Thorpe



  reply	other threads:[~2014-12-02 20:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.11982.1414182986.1147.help-gnu-emacs@gnu.org>
2014-11-07  1:09 ` Ways to use Emacs when programming C++ with Visual Studio? Emanuel Berg
2014-11-07 10:21   ` Thorsten Jolitz
     [not found]   ` <mailman.13103.1415355713.1147.help-gnu-emacs@gnu.org>
2014-11-10  0:51     ` 3246251196ryan
2014-11-10 10:43       ` Thorsten Jolitz
     [not found]       ` <mailman.13369.1415616253.1147.help-gnu-emacs@gnu.org>
2014-11-11 14:28         ` 3246251196ryan
2014-11-24 23:00   ` Ken Goldman
     [not found]   ` <mailman.14499.1416870041.1147.help-gnu-emacs@gnu.org>
2014-11-25 23:40     ` Mike
2014-11-26 14:55       ` Ken Goldman
2014-12-02 20:50         ` Robert Thorpe [this message]
2014-12-02 20:54           ` Óscar Fuentes
     [not found]       ` <mailman.14674.1417013766.1147.help-gnu-emacs@gnu.org>
2014-11-26 21:54         ` mflynn
2014-10-24 20:35 Thorsten Jolitz
2014-10-26  2:47 ` Óscar Fuentes
2014-10-27  8:41   ` Thorsten Jolitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d281g4jp.fsf@robertthorpeconsulting.com \
    --to=rt@robertthorpeconsulting.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=kgoldman@us.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.