Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
52 Views

A small bug of Intel Fortran's IDE for automatic code alignment

Dear all,

As you know, Intel Fortran's IDE is very powerful in code alignment,  by press Ctrl+K+D, we can align the code very beautifully. However, it can't recognize pre-processor definitions in code.  For example, for the following code, the aligned result is as follows:

#ifdef oldcheck2 ! old method, long time
do i=1,nwrs
  do j=1,nrt0
#else
    do j=1,nrt0
      do i=1,nwrs
#endif

However, I wish the result to be the follows:

#ifdef oldcheck2 ! old method, long time
do i=1,nwrs
  do j=1,nrt0
#else
do j=1,nrt0
  do i=1,nwrs
#endif

Thanks,

Tang Laoya

 

0 Kudos
0 Replies