I am learning Notepad++ to write Ionic apps and pages. Notepad++ has the ability to select a language for code completion and syntax highlighting, but Ionic is not an installed “language”. At least, I don’t see it under Language > I. How can I get Notepad++ to help me write Ionic code? (When I say, “Ionic code”, I mean tags like <ion-app>, <ion-page>, <ion-content>, etc. with their accompanying attributes.)
Second, how do I get Visual Studio 2019 to do the same thing?
What editors do you prefer to use to write Ionic apps and why do you like them so much?
I read about VS Code and have seen some YouTube videos about it. I have the full-blown, paid-for Visual Studio 2019 and my hope was that, if VS Code can do it, Visual Studio Professional should, too. I just don’t know how to configure VS to show drop-down hints when I type <ion- and then suggest values for attributes. Any tips?
From the IDE’s POV, Ionic is a bunch of components like any other bunch of components. I use Angular, so can’t directly speak to React or Vue (although both are also supported). If IonicModule is live in the environment you’re working in (what “live” means depends on how you structure your projects WRT modules - for me, all it means is “IonicModule is imported in the app module”), then code completion should do what you want when you type <ion-whatever. Naturally, the same is also true of any components you define - their input and output properties will be available for completion and popup documentation.
That makes sense. It’s probably like using an editor that knows xml structure, but then you tell it that the kind of xml you’re writing is xslt and it suggests appropriate tags and attributes and does the syntax highlighting.