Sign in to follow this  
lomateron

visual studio 2013 collapse expand problem

Recommended Posts

lomateron    491

I use a lot the collapse and expand feature, with "#pragma region" code too and visual studio has this problem,

sometimes when I write a word or just press the space key, some random collapsed regions will expand.

This can happen too when I am going through the history by pressing <ctrl+z> or <ctrl+y>  so it will accidentally delete the "redo" history.

This happens in the "update 1","update 2","update 3"

 

anyone here with this problem too?

Share this post


Link to post
Share on other sites
lomateron    491

wut?

no one here is a heavy "#pragma region" user?

In c++ I use it a lot because I don't use classes, I have all the code of my game only on one file, 15k lines of code on a .cpp file and 10k lines in a .fx 

does someone here does this too?

Share this post


Link to post
Share on other sites
Jan2go    2057

I have all the code of my game only on one file, 15k lines of code on a .cpp file and 10k lines in a .fx


Any special reason why you are doing this? blink.png It's probably one of the worst way to structure a project... And perhaps even VS doesn't like files of that size if it screws up the outlining. Try smaller files and see if it still happens.

Share this post


Link to post
Share on other sites
hahajoker181    124

 

I have all the code of my game only on one file, 15k lines of code on a .cpp file and 10k lines in a .fx


Any special reason why you are doing this? blink.png It's probably one of the worst way to structure a project... And perhaps even VS doesn't like files of that size if it screws up the outlining. Try smaller files and see if it still happens.

 

Agreed. You shouldn't keep 15k lines in one file, it is the best to keep them in separate file. This may increase the performance and also there are other reasons to go along. If you lose the file, than it will be frustrating to rewrite the entire program again. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this