Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

VS losing outlining

Bruce_Weaver
Начинающий
877Просмотр.

Hi,

 

My Fortran is littered with documentation and such so I went in and used Visual Studio 2013 to hide the comments using the outlining.  If I try to  open the Solution with a different VS (e.g. VS 2015), the outlining is gone.  What is worse, if I move the entire solution directory elsewhere, even VS 2013 loses the outlining I've spent hours putting in.  I can't find anything in the Intel of VS directories that has changed in the move (maybe that'st he problem?).

Any help would be much appreciated.  thanks, Bruce

0 баллов
4 Ответы
Steven_L_Intel1
Сотрудник
877Просмотр.

I can't get VS2013 to save outlining - can you show a small example and list the steps you take? Perhaps I am not understanding what you're seeing. I'm puzzled by your mention of "documentation" since the outlining support is for code blocks.

Bruce_Weaver
Начинающий
877Просмотр.

I'll include an example but, since it will not preserve the outlining, I don't think it'll help you at all.  Here is how you outline something: you highlight some section of your code; go to edit/outlining/hide selection and that section of code (or comments) will be hidden (with the usual "+...").  Now, much cleaner, readable code w/o losing critical information.  For example, lines 11 - 18 in the uploaded code.

Steven_L_Intel1
Сотрудник
877Просмотр.

Got it.

Ok, the outlining information is stored in a hidden file with the file type .suo. Not only is this file version-dependent (it has the VS version number in its file name), but it also contains full paths to the files for which it is remembering this info. This is why it disappears if you open the project in a different VS version or if you copy the solution to a new folder.

This is VS behavior and not Fortran-specific.

Bruce_Weaver
Начинающий
877Просмотр.

Hi Steve,

Thanks for the clarification. I had moved the .suo file but, since it is mostly in binary, I didn't know it kept things in absolute addresses.  But now I know which company's programmers to curse.

--Bruce

 

Ответить