3

I am coding in Node.js, each time I want to write something that looks like this:

const product = Factory
  .model('App/Models/Product')
  .create()

I get this as an output:

const product = Factory
      .model('App/Models/Product')
      .create()

enter image description here

And I delete back the space before the last line, and then I press Enter to continue coding, the last line jumps right again as this screenshot shows:

enter image description here

Adding (setq-default indent-tabs-mode nil) in my ~/.emacs file does not help.

What settings should I add for my Emacs to avoid this?

Drew
  • 75,699
  • 9
  • 109
  • 225
Begueradj
  • 131
  • 5

1 Answers1

0

It is simpler than i thought. I use the same solution I used here and it worked: How do I set up indentation to 2 spaces in web-mode

Begueradj
  • 131
  • 5