Thread: Dev C++ Compiler, Indentation?

  1. #1
    #junkie
    Join Date
    Oct 2004
    Posts
    240

    Post Dev C++ Compiler, Indentation?

    Does anyone have any idea if you are able to modify how the compiler (Dev C++, latest version) indents?

    And is it possible to make the compiler indent? Like a little button or command to make the compiler look through all the code make everything indented?

    The compiler indents a bit dif than id like it, and sometimes i need to make a bunch of none indented text indented, and was hoping the compiler has it like some old scripting programs iv used (not c++). Thanks!
    01110111011000010110110001100100011011110010000001 11000101110101011010010111010000100000011011000110 10010110011001100101001000000111100101101111011101 0100100000011011100111010101100010

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Just look in the drop down menus for something called Properties... or Options.... It'll have settings like how many spaces, etc...

    Dev-C++ always indents pretty close to what is accepted as the norm for C++. I would advise against anything drastically different, as it will hinder readability. And you can delete the indents just like characters.

  3. #3
    #junkie
    Join Date
    Oct 2004
    Posts
    240
    Well i dont want anything drasticly different. Its just for some functions and bracket sets it will do them odly, which i dont like. like sometimes it does stuff (reasons i cant remember right now) like..

    function()
    {
    commands
    commands
    }


    which overall is just annoying, simple small things.
    01110111011000010110110001100100011011110010000001 11000101110101011010010111010000100000011011000110 10010110011001100101001000000111100101101111011101 0100100000011011100111010101100010

  4. #4
    Registered User major_small's Avatar
    Join Date
    May 2003
    Posts
    2,787
    yeah, with dev-c++ you can change how many characters it indents by, if it uses "smart" indentation, and if it converts tabs to characters... I usually use four spaces and convert them to characters...

    in the top menu, look through each section until you find compiler options. there'll be a list of checkboxes and a section on the bottom to enter how many spaces it will take...

    also, you can highlight text and press tab and it'll indent all that text, or you can press shift + tab to unindent text...
    Join is in our Unofficial Cprog IRC channel
    Server: irc.phoenixradio.org
    Channel: #Tech


    Team Cprog Folding@Home: Team #43476
    Download it Here
    Detailed Stats Here
    More Detailed Stats
    52 Members so far, are YOU a member?
    Current team score: 1223226 (ranked 374 of 45152)

    The CBoard team is doing better than 99.16% of the other teams
    Top 5 Members: Xterria(518175), pianorain(118517), Bennet(64957), JaWiB(55610), alphaoide(44374)

    Last Updated on: Wed, 30 Aug, 2006 @ 2:30 PM EDT

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. Glut and Dev C++, Programs not Quitting?
    By Zeusbwr in forum Game Programming
    Replies: 13
    Last Post: 11-29-2004, 08:43 PM
  3. Dev C++ compiler question
    By exluddite in forum C++ Programming
    Replies: 1
    Last Post: 10-16-2004, 09:31 PM
  4. Compiler Design... Anyone That Can Help!
    By ComputerNerd888 in forum C++ Programming
    Replies: 3
    Last Post: 09-27-2003, 09:48 AM
  5. C Compiler
    By SAMSEIED in forum C Programming
    Replies: 5
    Last Post: 06-06-2002, 05:44 PM