Search code examples
autocompletetagsjsxintellisensecodesandbox

CodeSandbox editor has stopped auto completing the corresponding JSX closing tags?


CodeSandbox editor used to auto generate the corresponding close tag for the current tag.

For example:

<div> // THEN IT WOULD AUTO GENERATE THE </div> TAG

enter image description here

But don't know exactly when, it stopped doing that, and I have to write it manually. Is there a way to enable this autocomplete again?


Solution

  • In the codesandbox.io go to:

    File -> Preferences -> Settings

    In the Search Settings box type Javascript Autoclosing Tags.

    Enable that feature by checking the Checkbox.