How to create your own custom snippets in AL Language | Business Central

Create own custom snippets in Visual Studio Code for AL language. The documentation part any code, we generally, do while doing any development we put the comments over there so that who is the developer is and on which date they do any sort of changes or the creation of a particular object to Documentation is very much important right to an as you know that all these have just created manually but in case I want these lines to be created automatically by just typing my shortcut then it will be very beneficial for the developers so by default Visual Studio provides us this flexibility where we can create our custom


Create own custom snippets in Visual Studio Code for AL language Step :

1. File Menu--> 

        



Code :

{
    "Create  Custom Comment snippets":{
        "prefix": "tcomment(Custom Mukesh Tri)",
        "body": [
            "/***********************************************************************",
                 "Name : Mukesh Trident.",
                 "Date : $CURRENT_DATE-CURRENT_MONTH-CURRENT_YEAR",
                 "Remarks : ${3}",
            "***********************************************************************/"
        ],
        "description": "Custom Comment snippets Creted by Mukesh TRI"
       

    }

}

For more reference visit the below link

        User Snippets

        Create Custom Code





No comments:

Post a Comment