html in visual studio code code example
Example 1: visual studio code html template shortcut
First set HTML to the language
Then type:
html:5
And hit Tab
Voila, HTML Template in your favorite code editor!
Example 2: examples of homepage code vsc
import { IonContent, IonText, IonToolbar, IonHeader, IonPage, IonTitle, IonList, IonItem } from "@ionic/react"
import React from 'react';
const Home: React.FC = () => {
return (
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle> Hello World </IonTitle>
</IonToolbar>
</IonHeader>
<IonContent className="ion-padding">
<IonList>
<IonItem>
<IonText> hello World</IonText>
</IonItem>
</IonList>
</IonContent>
</IonPage>
);
};
export default Home;
Example 3: vs code enable "html" in "javascript"
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"vue-html": "html",
"razor": "html",
"plaintext": "pug"
}