Android Question Comment link syntax?

Chris Lee

Member
Licensed User
I am trying to use the new comment link feature, but maybe I'm getting the syntax wrong.

I've added a comment to a method in the Main module of the project:

B4X:
'Testing link: ide://goto?Module=Main&Sub=Method2
Private Sub Method1

End Sub



'This is method 2
Private Sub Method2

End Sub

The intellisense for Method1 just says (Invalid description) in both b4A and b4J

I'm using B4J 8.5 and B4A 10.2, so I may be out of date with the absolute latest versions.
 

DonManfred

Expert
Licensed User
Longtime User
The intellisense for Method1 just says (Invalid description) in both b4A and b4J
Add a empty line before
Private Sub Method1

The ide is trying to get the Onlinehelp-description for this sub from the comments above the sub.

This is how it looks in a B4XPages Project

B4X:
#Region Shared Files
#CustomBuildAction: folders ready, %WINDIR%\System32\Robocopy.exe,"..\..\Shared Files" "..\Files"
'Ctrl + click to sync files: ide://run?file=%WINDIR%\System32\Robocopy.exe&args=..\..\Shared+Files&args=..\Files&FilesSync=True
#End Region

'Ctrl + click to export as zip: ide://run?File=%B4X%\Zipper.jar&Args=Project.zip

Sub Class_Globals

B4X:
'Testing link: ide://goto?Module=Main&Sub=Method2
'
'This is method 1
Private Sub Method1

End Sub



'This is method 2
Private Sub Method2

End Sub
 
Last edited:
Upvote 0
Top