Chrome Developer tools: How to disable code auto complete?

两盒软妹~` 提交于 2019-12-02 03:06:19

问题


I am experimenting with Chrome DevTool's beautiful Workspaces / in-devtools code editor in the source panel, set up roughly like the accepted answer here: Chrome developer tools: View Console and Sources views in separate views/vertically tiled?

So far, it's awesome. The one drawback is that I detest code completion dropdowns and the browser entering things for me. When it gives me two quotes and I've only typed one, I really get irritated.

Anyway, is there a way to stop it automatically breaking my code trying to help out? If I really must, I'll revert back to my old gedit workflow, but then I'd be a sad bear.


回答1:


Thanks (perhaps) to the bug that was filed, this is now a feature in Google Chrome.

To disable autocomplete in Chrome Dev Tools:

  1. Open Dev Tools if it's not open already.
  2. Open Settings. For me, this is a cog icon in the top right corner of the devtools window.
  3. The General section of settings should hopefully be open automatically. If not, select it and scroll down to Sources
  4. Untick/uncheck Autocompletion. Yay!



回答2:


No, as of Chrome 32.0.1673.0 there is no way to disable quote/brace auto-insertion and/or code completion.

Feel free to file a bug at crbug.com for DevTools, and we will fix it up.



来源:https://stackoverflow.com/questions/19427835/chrome-developer-tools-how-to-disable-code-auto-complete

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!