Android Studio Tips of the Day(2)

原作者:Philippe Breault
原文地址:http://www.developerphil.com/…the-day-roundup-2/

关于快捷键

Android Studio 提供了不同的按键对应关系(在快捷键和动作之间的映射).你能看到你正在使用的案件映射,通过Settings->KeyMap.

1.重复的行

Mac Win&Linux
cmd+d ctrl+d

它可以复制当前行并且粘贴它到下一行,不会影响剪切板的内容。

dumplicate

Android Studio Tips of the Day(1)

原作者:Philippe Breault
原文地址:http://www.developerphil.com/…day-roundup-1/

关于快捷键

Android Studio 提供了不同的按键对应关系(在快捷键和动作之间的映射).你能看到你正在使用的案件映射,通过Settings->KeyMap.

1.高亮显示

Mac Win&Linux
cmd+shift+f7 ctrl+shift+f7

高亮显示光标所在的字符,这不仅仅是一个简单的匹配模式,它会了解当前的范围,并且高亮范围内同类的字符。你可以向上、向下浏览,通过:Edit -> Find -> Find Next/Previous

其他提示:

  • 高亮一个方法中的“return”或者“throw”,其他方法也会同样高亮显示
  • 高亮类声明中“extends”或者“implements”,同样会高亮 override/implemented的方法
  • 高亮一个 import 会同样高亮使用它的地方
  • 可以通过 Escape 取消高亮

ctrlshiftf7

[Win10]快捷键之Win组合键

————字数统计 456 字 | 阅读时长 2 分钟————

Win组合键

Shortcut Description
Windows Key WindowsKey Open and close the Start menu.
WindowsKey+1,WindowsKey+2,etc. Switch to the desktop and launch the nth application in the taskbar. For example, WindowsKey +1 launches whichever application is first in the list, numbered from left to right.
WindowsKey+A Open the action center.
WindowsKey+B Highlight the notification area.
WindowsKey+C Launch Cortana into listening mode[注1]. Users can begin to speak to Cortana immediately.
WindowsKey+D Switch between Show Desktop (hides/shows any applications and other windows) and the previous state.
WindowsKey+E Switch to the desktop and launch File Explorer with the Quick Access tab displayed.
WindowsKey+H Open the action center.
WindowsKey+I Open the action center.
WindowsKey+K Open the Connect pane to connect to wireless displays and audio devices.
WindowsKey+L Lock the device and go to the Lock screen.
WindowsKey+M Switch to the desktop and minimize all open windows.
WindowsKey+O Lock device orientation.
WindowsKey+P Open the Project pane to search and connect to external displays and projectors.
WindowsKey+R Display the Run dialog box.
WindowsKey+S Launch Cortana.[注2] Users can begin to type a query immediately.
WindowsKey+T Cycle through the apps on the taskbar.
WindowsKey+U Launch the Ease of Access Center.
WindowsKey+A Cycle through notifications.
WindowsKey+V Open the action center.
WindowsKey+X Open the advanced menu in the lower-left corner of the screen.
WindowsKey+Z Open the app-specific command bar.
WindowsKey+Enter Launch Narrator.
WindowsKey + Space Switch input language and keyboard layout.
WindowsKey+Tab Open Task view.
WindowsKey+, Peek at the desktop.
WindowsKey+Plus Sign Zoom in.
WindowsKey+Minus Sign Zoom out.
WindowsKey+ESCAPE Close Magnifier.
WindowsKey+LEFT ARROW Dock the active window to the left half of the monitor.
WindowsKey+RIGHT ARROW Dock the active window to the right half of the monitor.
WindowsKey+UP ARROW Maximize the active window vertically and horizontally.
WindowsKey+DOWN ARROW Restore or minimize the active window.
WindowsKey+SHIFT UP ARROW Maximize the active window vertically, maintaining the current width.
WindowsKey+SHIFT DOWN ARROW Restore or minimize the active window vertically, maintaining the current width.
WindowsKey+SHIFT LEFT ARROW With multiple monitors, move the active window to the monitor on the left.
WindowsKey+SHIFT RIGHT ARROW With multiple monitors, move the active window to the monitor on the right.
WindowsKey+HOME Minimize all nonactive windows; restore on second keystroke.
WindowsKey+PRNT SCRN Take a picture of the screen and place it in the Computer>Pictures>Screenshots folder.
WindowsKey+CTRL+LEFT/RIGHT ARROW Switch to the next or previous virtual desktop.
WindowsKey+CTRL+D Create a new virtual desktop.
WindowsKey+CTRL_F4 Close the current virtual desktop.
WindowsKey+? Launch the Windows Feedback App.

[注1]: If Cortana is unavailable or disabled, this shortcut has no function.

[注2]: Cortana is only available in certain countries/regions, and some Cortana features might not be available everywhere. If Cortana is unavailable or disabled, this command opens Search.

| | 总字数统计:93.5k