[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What is the best way to navigate #ifdef and #endif in C program
From: |
Alan Mackenzie |
Subject: |
Re: What is the best way to navigate #ifdef and #endif in C program |
Date: |
Wed, 08 Dec 2010 15:23:34 -0000 |
User-agent: |
tin/1.6.2-20030910 ("Pabbay") (UNIX) (FreeBSD/4.11-RELEASE (i386)) |
"Daniel (Youngwhan)" <breadncup@gmail.com> wrote:
> Hi,
> If there is curly brace, it is easy to navigate between them by M-C-f
> and M-C-b in c-mode.
> However, I cannot find a way to navigate in like curly brace when it
> comes to #ifdef, #else, and #endif.
> For example, if there is a code like this:
> #ifdef A_DEFINED
> (...100 lines)
> #else
> (... 500 lines)
> #endif
> , is there a easy way to move the cursor from #endif to #ifdef or
> #else and vice versa?
Yes. Experiment with C-c C-n, C-c C-p, C-c C-u. Or if you don't like
experimenting, read page "Movement Commands" in the CC Mode manual.
> Daniel
--
Alan Mackenzie (Nuremberg, Germaany).
Re: What is the best way to navigate #ifdef and #endif in C program, Elena, 2010/12/08
Re: What is the best way to navigate #ifdef and #endif in C program, Elena, 2010/12/08
Re: [OT] Re: What is the best way to navigate #ifdef and #endif in C program, Aaron W . Hsu, 2010/12/09
Re: What is the best way to navigate #ifdef and #endif in C program, Emmy Noether, 2010/12/09
Re: What is the best way to navigate #ifdef and #endif in C program, Johan Bockgård, 2010/12/08
Re: What is the best way to navigate #ifdef and #endif in C program,
Alan Mackenzie <=
Re: What is the best way to navigate #ifdef and #endif in C program, patata, 2010/12/09