Please point us to a different/better way if there is one... Else please consider better IntelliSense:
At the moment when we want to subscribe to an event we need to do everything manually:
You should be able to see a full list of publishers for a given object using Intellisense. Try typing:
[EventSubscriber(ObjectType::Codeunit, <Id>, <Press Ctrl+Space here>
For the second issue we are planning to add a 'code action' to provide a default subscriber signature with all valid parameters.
Ctrl+Space seams not working in the October Update.
Creating an EventSubscriber seems pretty rough right now. It would be nice to have some IntelliSence on the Object Id, or even better the option to use the Object Name, which would be more consistence with the rest of the AL-Syntax.
I have used the following syntax with success instead of using the objects IDs, but I do wish that there was intellisense on the event names.
database::"Sales Header"
page::"Customer Card"
Could you please log a new issue for the specific Intellisense bug? Can you provide a detailed repro? Checking on the latest build we do get event name suggestions:
For now, Do we need to manually enter procedure parameters for a event subscriber? I cannot find any documentation for this
@StanislawStempin: I started with the teventsub Template, which currently has no procedure, because as @jaspreet997 pointed out, I'm also don't know the procedure parameters from that event. In that case the IntelliSense seems not to work.
It would be nice and more intuitive to have a more guided process here. E.g. the way in the old development environment is pretty good.
New case for that?
Thanks. No need for a new case, better support for creating subscribers is tracked by this one and we are aware that this is an important scenario. We will provide updates on this issue once we are closer to implementing the solution.
Intellisense works correctly when Object ID is being entered explicitly:

Intellisense does not work when Object ID is being transformed, eg: Database::"Table Name:

The first approach is wrong, it goes against all NAV best practices. The second one does not provide Instellisense.
Hi @StanislawStempin,
in Februar Update if you using the teventsub-Template, you still have to remove the Apostrophes (') of EventName to get the IntelliSense List of published Events. Furthermore it would be nice to be able to see the Publisher Event Definition or even better to be able to add the parameters to the procedure below.
For now, we will see what we can do to improve the snippet.
The overall usability improvement of subscribing to events is still on our backlog.
We did some work on improving the snippets and Intellisense around event subscribers (for both the attribute arguments and the method parameters - see examples below). It is now working for trigger events, integration and business events. In case of business and integration events, the suggestion of the method parameters is made based on the attributes of the event publisher in order to know if the global variables and/or the sender should also be suggested.
Here is what it looks like to subscribe to an integration event when using the snippets:

Here is what it looks when writing the event subscriber from scratch:

Also, after our changes, the problem of the quotes does not seem to reproduce anymore.

I hope this helps!
Most helpful comment
We did some work on improving the snippets and Intellisense around event subscribers (for both the attribute arguments and the method parameters - see examples below). It is now working for trigger events, integration and business events. In case of business and integration events, the suggestion of the method parameters is made based on the attributes of the event publisher in order to know if the global variables and/or the sender should also be suggested.
Here is what it looks like to subscribe to an integration event when using the snippets:

Here is what it looks when writing the event subscriber from scratch:

Also, after our changes, the problem of the quotes does not seem to reproduce anymore.

I hope this helps!