skip to Main Content

To reproduce:

  1. have a variable named obj
  2. pass it as the last argument to a function
  3. press tab (as I usually do) to come out of the parentheses
  4. obj autocompletes to <object data="" type=""></object>

And this happens even if I pressed escape to close the autocomplete dropdown menu.

E.g.

function func(p) {}
const obj = {}
func(obj)

Copy paste this into an empty JS file in IntelliJ, put your caret behind obj on the last line and press tab.

How to disable this? And not only for obj but also for every other variable name this happens to.

2

Answers


  1. Chosen as BEST ANSWER

    I figured out that the solution is to go to settings > Editor > Live Templates and disable all the Zen templates (Zen CSS, Zen HTML, Zen XSL).


  2. Please try below step,

    1. Open Settings: Press Ctrl+Alt+S (Windows/Linux) or Cmd+, (macOS).
    2. Navigate to Code Completion: Go to Editor > General > Code Completion.

    enter image description here

    1. Disable HTML Tag Completion: Uncheck Autopopup code completion.
    2. Check JavaScript Settings: Go to Languages & Frameworks > JavaScript > Libraries.
    3. Disable Live Templates: Go to Editor > Live Templates, and disable or modify relevant templates.
    4. Disable HTML in JS: Go to Languages & Frameworks > JavaScript, and disable HTML integration if enabled.
    5. Restart IntelliJ IDEA: Restart to apply the changes.
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search