vim-closetag icon indicating copy to clipboard operation
vim-closetag copied to clipboard

Problem with indentation in js, jsx, ts, tsx files

Open letzabelin opened this issue 4 years ago • 5 comments

Example render method in react class. Symbol | is my cursor.

render() {
  return (
    <div>|</div>
  );
}

Then I press > and this is what happens:

render() {
  return (
    <div>
  |
    </div>
  );
}

And this happens with all files

letzabelin avatar Jun 30 '20 22:06 letzabelin

Yes, I have the save issue? How we can fix it?

alex-shamshurin avatar Aug 16 '20 08:08 alex-shamshurin

I am also having this issue

jamespottsSAFC avatar Aug 21 '20 01:08 jamespottsSAFC

Has this issue been fixed @alvan ? Because I am facing it too.

IBS27 avatar Jul 09 '21 16:07 IBS27

same to me. not indent in .jsx file. working fine on html

vienlodev avatar Jul 15 '21 02:07 vienlodev

Weird, It's not working for me in HTML. Just throws my cursor back to the very beginning of the line, no tabs at all.

Even doing the >> thing to make a new line puts both whatever I'm going to type and the closing tag at the beginning of the new line.

MMachado05 avatar Jul 31 '23 00:07 MMachado05