问题
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:
- Open Dev Tools if it's not open already.
- Open Settings. For me, this is a cog icon in the top right corner of the devtools window.
- The General section of settings should hopefully be open automatically. If not, select it and scroll down to Sources
- 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