Table of contents |

Show Context Menu

Context Menu

Undo/Redo

Right-clicking within the edit window brings up a context menu that allows:

Find/Replace

Find and Replace allow Unix style Regular Expressions for complex matching and substitution.

Find and Replace

 

Find and Replace

Code Beautifier

To use code formatter right click: Auto Indent Code. See our C Code Indent and Code Beautifier video.

Based on open source code formatter indent.exe: https://www.gnu.org/software/indent

Documentation and description of options can be found here:
https://www.gnu.org/software/indent/manual/indent.html

An options profile file can be modified to change the style. Dynomotion includes the  recommended style as:
\KMotion\Release\.indent.pro 

Code Validator

To use code Validator right click: Validate Code (using Cppcheck). See our Validate C Programs video.

Information about the TI Compiler.

Documentation and description of options can be found here:
http://cppcheck.sourceforge.net

An options profile file can be modified to change which warnings are reported. Dynomotion includes the recommended options as:
\DSP_KFLOP\ValidateOptions.txt

Any detected Errors and Warnings will appear in the lower panel of the C Programs Screen. Double clicking on an error should take you directly to the line in the code where the error was detected. Note if the code is detected in an #included file, that file will be opened in a subsequent Thread (or if already open in any Thread that Thread will be selected).  When correcting any error or warning in an #included file, remember to go back to file that includes it before re-Validating the program.

Opening included files

If the code is detected in an #included file, that file will be opened in a subsequent Thread (or if already open in any Thread that Thread will be selected). When correcting any error or warning in an #included file, remember to go back to file that includes it before re-Compiling the program.

When right-clicking on an #include line, the drop down list will offer the option to open the included file. If that file is already open in one of the Threads it will automatically switch to that Thread. If not, it will open the file in the next Thread (Thread #7 wraps back to Thread #1).