Visual Studio: Auto complete HTML tags inside an embedded babel scriptJSX or HTML autocompletion in Visual Studio CodeWhere should I put <script> tags in HTML markup?xing / wysihtml5 unescapes &lt; and &gt;Cannot display HTML stringReact.js code not recognized in TSX file (VS 2015 Update 1 RC)Support for script type=“text/babel” in Visual Studio CodeVisual Studio Code autocomplete element and closing tagSyntax Highlighting for HTML inside x-template script tags in Sublime Text 3How a script with type “text/babel” is transpiled when put on the HTML page?CodePen not showing any ReactJS componentUncaught TypeError: Cannot read property 'current' of undefined react-dom.production.min.js:134 at Vg

Is the destination of a commercial flight important for the pilot?

Is `x >> pure y` equivalent to `liftM (const y) x`

Type int? vs type int

Increase performance creating Mandelbrot set in python

Do all network devices need to make routing decisions, regardless of communication across networks or within a network?

How to run a prison with the smallest amount of guards?

Is this apparent Class Action settlement a spam message?

Where does the Z80 processor start executing from?

How does Loki do this?

How do I go from 300 unfinished/half written blog posts, to published posts?

Proof of work - lottery approach

How easy is it to start Magic from scratch?

How did Arya survive the stabbing?

Escape a backup date in a file name

How can I kill an app using Terminal?

Closest Prime Number

Integer addition + constant, is it a group?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

How long to clear the 'suck zone' of a turbofan after start is initiated?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

For a non-Jew, is there a punishment for not observing the 7 Noahide Laws?

Class Action - which options I have?

Is HostGator storing my password in plaintext?

How do we know the LHC results are robust?



Visual Studio: Auto complete HTML tags inside an embedded babel script


JSX or HTML autocompletion in Visual Studio CodeWhere should I put <script> tags in HTML markup?xing / wysihtml5 unescapes &lt; and &gt;Cannot display HTML stringReact.js code not recognized in TSX file (VS 2015 Update 1 RC)Support for script type=“text/babel” in Visual Studio CodeVisual Studio Code autocomplete element and closing tagSyntax Highlighting for HTML inside x-template script tags in Sublime Text 3How a script with type “text/babel” is transpiled when put on the HTML page?CodePen not showing any ReactJS componentUncaught TypeError: Cannot read property 'current' of undefined react-dom.production.min.js:134 at Vg













4















I have an html file with an embedded babel script within it



<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>React tutorial</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.2/browser.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">

</script>
</body>
</html>


I would like it be the case that when I'm typing inside the babel script



 <script type="text/babel">

</script>


And I type something like <div> the software autocompletes the end tag by entering the text </div> in




Neither the auto close tag extension, nor the sublime babel extension, from the visual studio marketplace, was able to do this.



I also followed the advice of this post and created a file named .vscode/settings.json which contains



"emmet.includeLanguages": 
"javascript": "javascriptreact"
,
"emmet.triggerExpansionOnTab": true
"emmet.includeLanguages":
"javascript": "html"



And this also had no effect.










share|improve this question
























  • It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

    – Michał Kostrzyński
    Mar 8 at 11:13






  • 1





    @MichałKostrzyński Because I'm using babel

    – Jacob
    Mar 8 at 11:20











  • Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

    – Michał Kostrzyński
    Mar 8 at 11:34












  • @MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

    – Jacob
    Mar 8 at 17:12
















4















I have an html file with an embedded babel script within it



<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>React tutorial</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.2/browser.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">

</script>
</body>
</html>


I would like it be the case that when I'm typing inside the babel script



 <script type="text/babel">

</script>


And I type something like <div> the software autocompletes the end tag by entering the text </div> in




Neither the auto close tag extension, nor the sublime babel extension, from the visual studio marketplace, was able to do this.



I also followed the advice of this post and created a file named .vscode/settings.json which contains



"emmet.includeLanguages": 
"javascript": "javascriptreact"
,
"emmet.triggerExpansionOnTab": true
"emmet.includeLanguages":
"javascript": "html"



And this also had no effect.










share|improve this question
























  • It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

    – Michał Kostrzyński
    Mar 8 at 11:13






  • 1





    @MichałKostrzyński Because I'm using babel

    – Jacob
    Mar 8 at 11:20











  • Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

    – Michał Kostrzyński
    Mar 8 at 11:34












  • @MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

    – Jacob
    Mar 8 at 17:12














4












4








4








I have an html file with an embedded babel script within it



<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>React tutorial</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.2/browser.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">

</script>
</body>
</html>


I would like it be the case that when I'm typing inside the babel script



 <script type="text/babel">

</script>


And I type something like <div> the software autocompletes the end tag by entering the text </div> in




Neither the auto close tag extension, nor the sublime babel extension, from the visual studio marketplace, was able to do this.



I also followed the advice of this post and created a file named .vscode/settings.json which contains



"emmet.includeLanguages": 
"javascript": "javascriptreact"
,
"emmet.triggerExpansionOnTab": true
"emmet.includeLanguages":
"javascript": "html"



And this also had no effect.










share|improve this question
















I have an html file with an embedded babel script within it



<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>React tutorial</title>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.8.2/browser.min.js"></script>
</head>
<body>
<div id="app"></div>
<script type="text/babel">

</script>
</body>
</html>


I would like it be the case that when I'm typing inside the babel script



 <script type="text/babel">

</script>


And I type something like <div> the software autocompletes the end tag by entering the text </div> in




Neither the auto close tag extension, nor the sublime babel extension, from the visual studio marketplace, was able to do this.



I also followed the advice of this post and created a file named .vscode/settings.json which contains



"emmet.includeLanguages": 
"javascript": "javascriptreact"
,
"emmet.triggerExpansionOnTab": true
"emmet.includeLanguages":
"javascript": "html"



And this also had no effect.







javascript html reactjs visual-studio-code babel






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 8 at 15:43







Jacob

















asked Mar 8 at 11:07









JacobJacob

80326




80326












  • It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

    – Michał Kostrzyński
    Mar 8 at 11:13






  • 1





    @MichałKostrzyński Because I'm using babel

    – Jacob
    Mar 8 at 11:20











  • Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

    – Michał Kostrzyński
    Mar 8 at 11:34












  • @MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

    – Jacob
    Mar 8 at 17:12


















  • It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

    – Michał Kostrzyński
    Mar 8 at 11:13






  • 1





    @MichałKostrzyński Because I'm using babel

    – Jacob
    Mar 8 at 11:20











  • Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

    – Michał Kostrzyński
    Mar 8 at 11:34












  • @MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

    – Jacob
    Mar 8 at 17:12

















It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

– Michał Kostrzyński
Mar 8 at 11:13





It might be a stupid question, but "why?". If you're only going for the React tutorial you don't have to use babel, because most modern browsers already have the features needed by React. Therefore there's no need to transpile.

– Michał Kostrzyński
Mar 8 at 11:13




1




1





@MichałKostrzyński Because I'm using babel

– Jacob
Mar 8 at 11:20





@MichałKostrzyński Because I'm using babel

– Jacob
Mar 8 at 11:20













Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

– Michał Kostrzyński
Mar 8 at 11:34






Alright, scratch what I said - I forgot about JSX not being properly handled without babel when using inline script tag. Either way - the reason VSCode doesn't get that kind of setup is probably because nobody is doing it that. If you want to learn React, using the create-react-app is probably going to be both easier and more comfortable (because of all the hot reload stuff).

– Michał Kostrzyński
Mar 8 at 11:34














@MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

– Jacob
Mar 8 at 17:12






@MichałKostrzyński Why is create-react-app better? I'm pretty sure I used it when going through reacts intro tutorial reactjs.org/tutorial/tutorial.html, and seems like it's just way easier to include those three scripts(including babel) in my header.

– Jacob
Mar 8 at 17:12













0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55061931%2fvisual-studio-auto-complete-html-tags-inside-an-embedded-babel-script%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55061931%2fvisual-studio-auto-complete-html-tags-inside-an-embedded-babel-script%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to get text form Clipboard with JavaScript in Firefox 56?How to validate an email address in JavaScript?How do JavaScript closures work?How do I remove a property from a JavaScript object?How do you get a timestamp in JavaScript?How do I copy to the clipboard in JavaScript?How do I include a JavaScript file in another JavaScript file?Get the current URL with JavaScript?How to replace all occurrences of a string in JavaScriptHow to check whether a string contains a substring in JavaScript?How do I remove a particular element from an array in JavaScript?

Can't initialize raids on a new ASUS Prime B360M-A motherboard2019 Community Moderator ElectionSimilar to RAID config yet more like mirroring solution?Can't get motherboard serial numberWhy does the BIOS entry point start with a WBINVD instruction?UEFI performance Asus Maximus V Extreme

List of MPs elected to the English parliament in 1640 (April) Contents List of constituencies and members See also Notes References Navigation menueNational Archives – The Glynde Place ArchivesCobbett's Parliamentary history of England, from the Norman Conquest in 1066 to the year 1803'Aldermen in Parliament', The Aldermen of the City of London: Temp. Henry III – 1912onepage&q&f&#61, false 229