Translations:KDevelop4/Manual/Working with source code/76/en

From KDE Wiki Sandbox
  • Snippets: This provides sequences of text that one uses over an over and doesn't want to write every time. For example, in the project from which the picture above was created, there is a frequent need to write code like
for (typename Triangulation< dim>::active_cell_iterator cell
      = triangulation.begin_active();
   cell != triangulation.end();
   ++cell)


This is an awkward expression but it will look almost exactly like this everytime you need such a loop — which would make it a good candidate for a snippet.