Thread: Looking for editor with advanced indentation

  1. #1
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696

    Looking for editor with advanced indentation

    Currently using KDevelop and this is what I get
    Code:
    while( hasMore() ) {      // start of while loop
        print();             // indented properly and then press [ENTER]
        }                      // enter closing brace and it'll in be undesired location
    what I want to get is this
    Code:
    while( hasMore() ) {
        print();
    }              // closing brace aligned with "while"
    SO, I'm looking for that one feature. Do vim, emacs, anjuta, or [fill in the blank] have it or could be set to do it?
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  2. #2
    Hello,

    You may want to consider MinGW Developer Studio. MinGW Developer Studio is a C/C++ cross-platform IDE for Windows and Linux that looks and feels like MS Visual C++. It has complete project management, debug, and release configurations for a project, a color syntax highlighting editor, a code calltip, integrated GNU C/C++ compilers, an integrated GNU Debugger (GDB), print and print preview, and much more.

    Sadly, there main site does not seem to be up or cannot resolve on my DNS network. Good news is that there is a mirror site which can be found here: Parinya Software


    - Stack Overflow
    Segmentation Fault: I am an error in which a running program attempts to access memory not allocated to it and core dumps with a segmentation violation error. This is often caused by improper usage of pointers, attempts to access a non-existent or read-only physical memory address, re-use of memory if freed within the same scope, de-referencing a null pointer, or (in C) inadvertently using a non-pointer variable as a pointer.

  3. #3
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Perfect! It has the feature I want. Thanks.
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  4. #4
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    vim is all you need

  5. #5
    unleashed alphaoide's Avatar
    Join Date
    Sep 2003
    Posts
    696
    Thantos, can I set up vim to have the feature that I mentioned on my first post?
    source: compsci textbooks, cboard.cprogramming.com, world wide web, common sense

  6. #6
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    vim comes with c indentation by default. And yes it will align the closing }

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    emacs supports indentation for many languages, and its easy to add more. vim is good but i think emacs wins the indentation battle.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fixing the Indentation draft
    By Elysia in forum A Brief History of Cprogramming.com
    Replies: 47
    Last Post: 02-23-2008, 11:17 AM
  2. setting indentation in dev-c++
    By richdb in forum A Brief History of Cprogramming.com
    Replies: 8
    Last Post: 06-12-2006, 08:03 PM
  3. Advanced? Not Advanced? Anyone?
    By Jotun in forum C++ Programming
    Replies: 3
    Last Post: 04-28-2004, 08:02 PM
  4. Advanced but yet general
    By Rhodium in forum C Programming
    Replies: 6
    Last Post: 08-09-2003, 12:46 PM
  5. you advanced people, read this
    By Leeman_s in forum C++ Programming
    Replies: 2
    Last Post: 10-04-2001, 08:26 PM