C/C++ Software Development with Eclipse

4.3.7. Smart Insert

It is a set of minor assistance that Eclipse provides. But over all, makes a huge difference in longer run. What does this mode do? Auto insert matching ", ', (, [, < and {. When copy-pasting code — take care of correct indentation in destination.

To enabled/disable this mode: Ctrl + Shift + Insert OR Edit ‣ Smart Insert Mode

To customize the preferences: Window ‣ Preferences ‣ C/C++ ‣ Editor ‣ Typing

../../../_images/e-pref-editor-typing.png
  • Strings - When you press one " (quote) , the 2nd " (quote) is automatically inserted.
  • Similar controls are available for (, ), [, ], <, >, {, }

The interesting part is, if you manually press the second closing quote/bracket, it is overwritten.

Feedback Form
Feedback Analytics