Question: how to change your nintendo online name?
Answer: Click on your name or user icon in the top-right part of the screen, (not the very top-right which displays your Nintendo Account). ... 
Select Public Profile.
Your profile information is displayed on this page. ... 
In the text field under Display Name type in your desired username and then click Save Changes.