简体   繁体   中英

PhpStorm 9 disable expand on tab

In JavaScript files, if I write for example record and then I press tab, then the editor automatically expand it to <record></record> .

How can I disable this? 在此处输入图片说明 在此处输入图片说明

Generally speaking such completion (as shown on your second screenshot) should not be working in JavaScript file, unless it's a:

  • language injection fragment (HTML/XML and alike) .. which is not the case here because it's not inside string literal;
  • some ReactJS/JSX kind of code

Considering the last one: try disabling Emmet for JSX at Settings/Preferences | Editor | Emmet | JSX Settings/Preferences | Editor | Emmet | JSX Settings/Preferences | Editor | Emmet | JSX .

Open Settings->Editor->General->Smart Keys and uncheck "Automatically insert closing tag".

If you're still experiencing this problem, it might because of the following issue: https://youtrack.jetbrains.com/issue/IDEA-119253 (it should be fixed in 138.2128, 138.2206 but there are several similar open bugs).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM