实际操作,按住Ctrl键不放,先按K键,再按F键,其他操作是类似的。 格式化全部代码 Ctrl+A+K+F 格式化选中的代码 Ctrl+K+F 注释代码 Ctrl+K+C(comment) 反注释代码 Ctrl+K+U