Skip to content

Visual Studio Code Snippets for Acumatica xRP

License

Notifications You must be signed in to change notification settings

Acumatica/CodeSnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acumatica Code Snippets

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

How to Install Code Snippets

  • 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: image

How to Use Code Snippets

  • Type a shortcut for code snippet
    • Acumatica Code Snippets shortcuts for DAC and DAC fields start with "dac": image
    • Acumatica Code Snippets shortcuts for graph events start with underscore: image
  • Select a shortcut from IntelliSense suggestions and press Tab key.
    • For graph events Visual Studio will show you a list of available templates and you can select a template with a suitable signature type: image
  • 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:

image

Details on Visual Studio Code Snippets

Contributing

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

About

Visual Studio Code Snippets for Acumatica xRP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published