简体   繁体   English

Chrome开发者工具:如何禁用代码自动完成功能?

[英]Chrome Developer tools: How to disable code auto complete?

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? 我正在源面板中尝试使用Chrome DevTool的漂亮Workspaces / in-devtools代码编辑器,在此处大致设置为可接受的答案: Chrome开发人员工具:在单独的视图中/垂直平铺地查看控制台和源代码视图?

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. 如果确实需要,我将恢复到旧的gedit工作流程,但是那样我会很伤心。

Thanks (perhaps) to the bug that was filed, this is now a feature in Google Chrome. (也许)感谢所提交的错误,现在它已成为Google Chrome中的功能。

To disable autocomplete in Chrome Dev Tools: 要在Chrome开发工具中禁用自动完成功能,请执行以下操作:

  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. 对我来说,这是devtools窗口右上角的齿轮图标。
  3. The General section of settings should hopefully be open automatically. 希望应该自动打开设置的“ 常规”部分。 If not, select it and scroll down to Sources 如果没有,请选择它并向下滚动到Sources
  4. Untick/uncheck Autocompletion. 取消勾选/取消选中自动完成。 Yay! 好极了!

No, as of Chrome 32.0.1673.0 there is no way to disable quote/brace auto-insertion and/or code completion. 不可以,从Chrome 32.0.1673.0开始,无法禁用引号/括号自动插入和/或代码完成功能。

Feel free to file a bug at crbug.com for DevTools, and we will fix it up. 请随时在crbug.com上为DevTools提交错误,我们将对其进行修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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