web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Overlapping reference with method name.

(0) ShareShare
ReportReport
Posted on by 140

Hi, I am using visual studio 2017 professional for D365FO development. It was working fine but suddenly, references are overlapping method name in code editor. 
Morever, I tried with codelens but still same issue and also update the VS still same result. 
Please help!

pastedimage1680591005561v1.png

pastedimage1680591026266v2.png

Thanks 

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Have you tried restarting Visual studio and your Devbox?

  • Suggested answer
    GirishS Profile Picture
    27,833 Moderator on at

    Hi,

    In addition to Mohit comments - Try formatting the code using Ctrl + k and Ctrl + D.

    Also delete one method and recreate it.

    Recently I also faced the similar issue but adding new methods solved my problem.

    Thanks,

    Girish S.

  • Bharani Preetham Peraka Profile Picture
    3,634 Moderator on at

    You can try changing the screen size of code editor. But if it overlaps also it doesn't affect you in any way. So you can keep working.

  • D356FO_Dev Profile Picture
    140 on at

    Hi, Mohit and Girish thanks for your proposals but unfortunately, both of these solutions did not work.  

  • GirishS Profile Picture
    27,833 Moderator on at

    Just try to move the method to next line and check.

    Place the cursor on the method and click on enter.

    Is it happening for one object or for all the objects?

    Try one more thing Just copy all the code into notepad - Remove all the code from the table - Save and build the project - Now copy the code again from the notepad and check.

    Thanks,

    Girish S.

  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Can you try deleting VS cache

    dotnetrevisited.blogspot.com/.../how-to-clear-visual-studio-cache.html

  • D356FO_Dev Profile Picture
    140 on at

    tried all the three options still no success :(

  • GirishS Profile Picture
    27,833 Moderator on at

    For a temporary solution you can disable the codeLens option from the Tools >> Options >> Dynamics 365 >> X++ >> CodeLens>> Uncheck the enable codeLens.

    This will remove the reference option shown on the code.

    Thanks,

    Girish S.

  • D356FO_Dev Profile Picture
    140 on at

    Hi, if I reinstall visual studio but then most probably I could not find D365 FO extension. Is it correct then how would I get it?

  • D356FO_Dev Profile Picture
    140 on at

    Hi Girish, 

    showing me an error. 
    May be reinstalling visual studio will solve this issue but then I will loose this D365 extension as it is not available in tools and extensions. May be you have any other idea?
    Thanks
    pastedimage1680678327742v1.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 510 Super User 2026 Season 1

#2
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 399

#3
Adis Profile Picture

Adis 251 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans