In many places in the various designers within Visual Studio Code, there are standard keyboard shortcuts available. Some of these are as follows:
- Ctrl + N to create a new empty file
- Ctrl + O to open an existing file
- Ctrl + spacebar to access AL IntelliSense, which shows us what we can do for the object that we are working on
- F5 to publish the project
- Ctrl + Shift + B to do an on-the-fly build (very useful for error checking as we go)
- Ctrl + / to comment or uncomment code and properties
- Ctrl + X, Ctrl + C, and Ctrl + V in normal Windows mode for deletion (or cut), copy, and paste, respectively
We can cut, copy, and paste AL code—even procedures—relatively freely within an object, from object to object, or to a text-friendly tool (for example, Word or Excel) much as if we were using a text editor. The source and target objects don't need to be of the same type.
The easiest way to copy a complete object is...
The easiest way to copy a complete object is...