使用快捷键检查元素

  1. Ctrl + shift + c

如何如果代码是压缩的,如何格式化?

截屏2020-10-30 上午11.52.34.png
点击左下角的 {}

如何发现无用的代码?

执行命令show coverage

红色就是代表从未被使用的代码

如何使用快捷键递增或递减CSS属性的值?

按住ctrl + 上下键就是以100递增或递减
按住shift + 上下键就是以10递增或递减
按住alt + 上下键就是以0.1递增或递减
按住上下键就是以1递增或递减

  • Option+Up (Mac) or Alt+Up (Windows, Linux) to increment by 0.1.
  • Up to change the value by 1, or by 0.1 if the current value is between -1 and 1.
  • Shift+Up to increment by 10.
  • Shift+Command+Up (Mac) or Shift+Page Up (Windows, Linux) to increment the value by 100.

参考:链接

如何快捷转换16进制颜色?

image.png
点击红框按钮即可转换