Appologies if there is an obvious answer to this question - I'm a bit of a newbe.
Is there any way to get Dev C++ to automatically format the program in the window - i.e. to make it visually look as it should with loops and if's nested etc.
I can't seem to do this and it make the program I have written difficult to read.
I've use a LISP development enviornment and on that there is a button which the user presses to have the whole progamme formatted properly.
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Kurgusov, I think you are worrying about his motives too much. If you have ever coded in a team, or used open source code, or code posted to this forum, then these and many more are reasons for wanting code formatting.
Maybe his TAB key is just broken. ;-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It won't reformat the code for you. You need to type it formatted! There are some auto-indent options to assist (or hinder depending on your point of view).
When attempting to make sense of unformatted code posted to this forum, I use VC++ 2005 Express Edition which does that with ctrl-k crtl+f. Of course once you have downloaded an installed that you may be asking yourself what you need Dev-C++ for in the first place! ;-)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm sorry for posting here again with a bad attitude.
But I have to ask, why would you need a program to format your code ?
Is it so you can view code posted at this forum, if so then I completly understand.
But if its so you can understand you own code,
well thats just f***ed.
You must know how to indent your loops, one loop equals one tab,
sounds stupid 'cause I can't demonstrate in this post.
int num[3] ;
for (int i=0; i < 4; i++){
....num [i] = i ;
}
....for (int i=0; i < 4; i++){
........num [i] = i+1 ;
....}
etc.
someone needs to allow for code tags in this forum to make life easier, no ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Appologies if there is an obvious answer to this question - I'm a bit of a newbe.
Is there any way to get Dev C++ to automatically format the program in the window - i.e. to make it visually look as it should with loops and if's nested etc.
I can't seem to do this and it make the program I have written difficult to read.
I've use a LISP development enviornment and on that there is a button which the user presses to have the whole progamme formatted properly.
Thanks.
Kurgusov, I think you are worrying about his motives too much. If you have ever coded in a team, or used open source code, or code posted to this forum, then these and many more are reasons for wanting code formatting.
Maybe his TAB key is just broken. ;-)
Are you asking if dev-cpp can make your code look better,
wtf are you asking ?
It won't reformat the code for you. You need to type it formatted! There are some auto-indent options to assist (or hinder depending on your point of view).
When attempting to make sense of unformatted code posted to this forum, I use VC++ 2005 Express Edition which does that with ctrl-k crtl+f. Of course once you have downloaded an installed that you may be asking yourself what you need Dev-C++ for in the first place! ;-)
Thanks cpns - I'll give VC++ a try (is it free??).
yes it is free
I'm sorry for posting here again with a bad attitude.
But I have to ask, why would you need a program to format your code ?
Is it so you can view code posted at this forum, if so then I completly understand.
But if its so you can understand you own code,
well thats just f***ed.
You must know how to indent your loops, one loop equals one tab,
sounds stupid 'cause I can't demonstrate in this post.
int num[3] ;
for (int i=0; i < 4; i++){
....num [i] = i ;
}
....for (int i=0; i < 4; i++){
........num [i] = i+1 ;
....}
etc.
someone needs to allow for code tags in this forum to make life easier, no ?
well there I go again,
exceeding the boundries of the array,
I must truly suck.