Monkey Studio IDE The way IDEs should be

Abbreviations

Hey here is a new place for sharing ideas about Abbreviations in MkS.
The goal of this place is to allow MkS users to easily post/edit their favorites code snippets.
The MkS Team will then before each release take all the available snippets here and generate the abbreviations.mks script, witch is used by the abbreviations manager.

The document should be structured per Lexer ( language ), the list is available in the MkS abbreviations editor (Edit -> Settings -> Abbreviations) when adding a new one.
As a start example, i provide the current default C++ ones.
Feel free to update the abbreviations, and make the MkS community growing !
Don't hesitate to contact us if you don't have write access or problems editing this page.

The line template is described here : abbreviation add [macro] [description] [language] [snippet]
A vertical caret (|) can be place inside the snippet, it correspond to the place the cursor will be positioned after an abbreviation is expanded.

C++


abbreviation add "whileb" "while statement" "C++" "while ( | )\n{\n}"
abbreviation add "switchb" "switch statement" "C++" "switch ( | )\n{\n}"
abbreviation add "structd" "struct declaration" "C++" "struct |\n{\n};"
abbreviation add "pu" "public" "C++" "public|"
abbreviation add "pro" "protected" "C++" "protected|"
abbreviation add "pr" "private" "C++" "private|"
abbreviation add "ife" "if else statement" "C++" "if ( | )\n{\n}\nelse\n{\n}"
abbreviation add "ifb" "if statement" "C++" "if ( | )\n{\n}"
abbreviation add "forb" "for statement" "C++" "for ( |; ; )\n{\n}"
abbreviation add "classd" "class declaration" "C++" "class |\n{\npublic:\n};"