Skip to content Skip to sidebar Skip to footer

How To Add Shortcut Letters Or Words In Android Studio's Terminal For Frequent Commands?

In Android Studio's Terminal window, I use some commands too frequently and it's a lot frustrating. The commands I use a thousand times a day are: adb kill-server adb connect 192.1

Solution 1:

Follow these steps:

1) Go to the root folder of adb.exe:

Hold Ctrl+Shift+Esc to open the Task Manager, and in the "Details" tab, right click on adb.exe and select "Open file location":

2) In that directory create a new Text Document and change its name to the shortcut letter you want and change the extension from txt to bat. i.e k.bat:

3) Now open the file in Notepad or just right click on it and select Edit, then type your command and save it and close it:

You can do the step 2 and 3 for other commands too. i.e c.bat, just be careful not to name them similar to already defined commands.

Now if you go back to the Terminal you can just write k or c and hit the Enter.


Post a Comment for "How To Add Shortcut Letters Or Words In Android Studio's Terminal For Frequent Commands?"