Site Search

Silicon Labs EFM32: Useful Features of Simplicity Studio - Commenting Out Source Code -

EFx32

Knowing this will improve the usability of Simplicity Studio. I will introduce such a function.


<Question>
Is there a way to easily comment out the source code?



<Answer>

On the source code, select the target line you want to comment out and right-click. Toggle Comment, Add BlockComment, Remove Block Comment in Source are the corresponding functions.


Article header 5 1 4

If you select Toggle Comment, all target lines will be commented out with //. Select Toggle Comment again to remove the comment out.

Article header 5 2 2

Block Comment is /* */. Add to comment out, Remove to delete comment out.

Article header 5 3 1

Note that shortcut keys are written next to Toggle Comment, Add Block Comment, and Remove Block Comment, so you can use them to easily comment out. Shortcut key assignment is done in Key of Preferences (gear icon). Comment/Uncomment is Toggle Comment. If you use it frequently, assign a user-friendly key.


Article header 5 4 2

Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.