Thread: fix lines visual c++ 2008

  1. #1
    Registered User
    Join Date
    Sep 2009
    Posts
    24

    fix lines visual c++ 2008

    how to fix the lines ?

    i mean that


    if
    Code:
    void func(){
    if(exp)
    inst1;
    else
    inst2;
    }

    after fixing
    Code:
    void func(){
    	if(exp)
    		inst1;
    	else
    		inst2;
    }

    is there any button fix that ?


    TNX ..................

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    There should be an even faster short-cut, but a quick check shows: CTRL-A followed by CTRL-K followed by CTRL-F (the latter two being available from Edit -> Advanced -> Format Selection).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Oct 2009
    Location
    While(1)
    Posts
    377
    i think you should use tab this is what you are looking for

  4. #4
    Registered User
    Join Date
    Sep 2009
    Posts
    24
    so ?
    there's no such thing ?

    thank you .

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by the_contractor
    so ?
    there's no such thing ?
    What do you mean? I have shown you one way. I just commented that I think that should be an even more convenient way, but if it exists then it has slipped my mind.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. writing a dll in visual studio 2008
    By xixpsychoxix in forum Windows Programming
    Replies: 4
    Last Post: 09-14-2009, 03:13 AM
  2. Avoiding Global variables
    By csonx_p in forum Windows Programming
    Replies: 32
    Last Post: 05-19-2008, 12:17 AM
  3. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  4. Functions in C
    By shoobsie in forum C Programming
    Replies: 15
    Last Post: 11-17-2005, 01:47 PM
  5. Linking error
    By DockyD in forum C++ Programming
    Replies: 10
    Last Post: 01-20-2003, 05:27 AM