3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ブラウザと同じキーマップで、Inspect Element

Last updated at Posted at 2015-07-08

Chrome ブラウザでは、alt-cmd-i で DevTool が開くし、cmd-shift-c で Inspect Element を開始出来る。

Atom では、alt-cmd-i はできるが、cmd-shift-c はデフォルトでは設定されていない。

以下を設定することで、いきなり Inspect Element を開始できる。
Atom Package の UI 系を作成時には重宝する。

init.coffee

atom.commands.add 'atom-workspace',
  'user:inspect-element': =>
    atom.openDevTools()
    atom.executeJavaScriptInDevTools('DevToolsAPI.enterInspectElementMode()')

keymap.cson

'atom-workspace:not([mini])':
  'cmd-shift-c':   'user:inspect-element'
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?