SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2015 v20 Beta Discussion => Topic started by: asandler on September 24, 2015, 12:50:13 PM

Title: New show-statements command
Post by: asandler on September 24, 2015, 12:50:13 PM
Seems like a pretty powerful tool.
Beta1 C++ version IMHO has few problems:
1. It only shows top level statements. I.e. if there is an if statement inside of while loop it will not show.
2. There is no way to add my own statements. E.g. we're using macro called for_each_on_queue that runs through a linked list. It's a for loop. It does not show up as a statement.

Alex.
Title: Re: New show-statements command
Post by: asandler on September 24, 2015, 12:57:28 PM
There are some issues with this command too. For instance:

if (...)
else if (...)
else

statement shows just last else. Not very useful.
Title: Re: New show-statements command
Post by: Dennis on October 02, 2015, 08:54:12 PM
Interesting that you found the raw command before finding it on the GUI.

Go to Tools > Options > General > Selective Display

You can adjust the level that the statement outline drills down to.  The default probably should be increased.  I could not reproduce the issue you saw with if statements, but I'm going to guess it was related to having the option set too low.

If you go to Document > C/C++ options > C/C++ Preprocessing and define your foreach macro's to expand to recognizable C++, the statement tagging should be able to take it from there.