Code snippets are small blocks of reusable code that can be inserted in a code file. Acumatica Code Snippets is a collection of Visual Studio code snippets designed for Acumatica. It provides templates for:
- DACs and DAC fields
- Graph event handlers with different signature styles:
- Classic Name Convention signature
- Generic signature
- Short generic signature for graph field events
- Download snippets from the src folder
- In your Visual Studio open "Code Snippets Manager" window ("Tools" -> "Code Snippets Manager")
- Add folders with downloaded code snippets. See links in the "Details on Visual Studio Code Snippets" for more details.
- If you don't see code snippets in IntelliSense suggestions make sure that IntelliSense settings are configured correctly. Open C# IntelliSense options ("Tools" -> "Options" -> "Text Editor" -> "C#" -> "IntelliSense") and configure "Snippets behavior" option to always include code snippets:
- Type a shortcut for code snippet
- Select a shortcut from IntelliSense suggestions and press Tab key.
- The inserted code contains placeholders like DAC and DAC Field names. You should replace them with your code. You can switch between placeholders by pressing Tab key:
You can share your code snippets with other developers by suggesting new code snippets for Acumatica.
Please create a separate branch with your snippets and make a pull request into the main
branch.
Add @SENya1990 (Sergey Nikomarov) to reviewers