Hi Readers.
The AL Language extension offers users the option to help fix issues in code. Code Actions is a Visual Studio Code feature providing the user with possible corrective actions right next to an error or warning.
If actions are available, a light bulb appears next to the error or warning. When the user clicks the light bulb (or presses Ctrl+.), a list of available code actions is presented.
Find more details about Using AL Code Actions.
![](https://yzhums.com/wp-content/uploads/2022/05/image-11.png)
![](https://yzhums.com/wp-content/uploads/2022/05/image-12.png)
There is a new feature in Business Central 2022 wave 1 (BC20), Multiple layouts of the same type in reports and report extensions.
More details: Adding multiple layouts (New rendering section for report and report extensions)
![](https://yzhums.com/wp-content/uploads/2022/03/image-166-837x1024.png)
To better handle this change, Microsoft has added a new code action.
Convert to ‘Rendering’: Fix old report layout and replace with rendering
layout section
![](https://yzhums.com/wp-content/uploads/2022/05/image-14.png)
Microsoft Docs has also been updated, more details: AL Code Actions.
![](https://yzhums.com/wp-content/uploads/2022/05/image-13.png)
Let’s test it together:
![](https://yzhums.com/wp-content/uploads/2022/05/Snipaste_2022-05-09_13-44-37-1024x404.png)
Test Video:
END
Hope this will help.
Thanks for reading.
ZHU
コメント