Author Topic: New show-statements command  (Read 767 times)

asandler

  • Senior Community Member
  • Posts: 286
  • Hero Points: 25
New show-statements command
« 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.

asandler

  • Senior Community Member
  • Posts: 286
  • Hero Points: 25
Re: New show-statements command
« Reply #1 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.

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2501
  • Hero Points: 364
Re: New show-statements command
« Reply #2 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.