简体   繁体   English

如何保存 shell 命令以备下次使用(Android Studio 终端)

[英]How to save shell command for next time use (Terminal of Android Studio)

Suppose I run this command in Android Studio terminal假设我在 Android Studio 终端中运行此命令

D:\.android\sdk\platform-tools/adb shell input text 'Some Text'

How do I save it (as macro) for next time use After closing and opening Android Studio instead of retyping the full command?关闭并打开 Android Studio而不是重新输入完​​整命令后,如何将其保存(作为宏)以备下次使用?

I know in the current session we can use the UP/DOWN arrows, I am looking at something like macros to be saved and be permanent...我知道在当前会话中我们可以使用向上/向下箭头,我正在查看要保存并永久保存的宏之类的东西......

I also faced this problem and reduce my 80% time and effort to run shell command by creating .bat files with just one letter like d.bat etc ( single letter for reducing keyboard interaction to lessen time ).我也遇到了这个问题,通过创建.bat文件只包含一个字母,如d.bat等(用于减少键盘交互以减少时间的单个字母),我减少了 80% 的时间和精力来运行 shell 命令。

If you have no idea about What is bat file?如果您不知道什么是 bat 文件? and How to deal with it?以及如何处理? please check this answer .请检查这个答案

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM