Windows Terminal is a commonly used command line tool in Windows operating systems, usually opened in the upper left corner of the screen. However, if you'd rather launch a Terminal window from a central location in Windows 11, we can provide you with a detailed guide on how to do so.
There are two ways to set the Windows Terminal to open in the center instead of the upper left corner. One is to modify the Settings.json file, and the other is to implement it through terminal settings.
In this method, you can set the Windows Terminal to open in the center of the screen by modifying the Terminal startup settings. Here’s how:
Right-click on the Start menu and select Windows Terminal (Admin).
Now, click on the small arrow to the right of the Windows PowerShell tab and select Settings.
By default, the settings window will open the startup section.
Here, on the right, scroll down to the bottom and expand Launch Parameters.
Now, go to the center on startup and move the toggle to the right to turn it on.
Press the save button to save changes.
Read: How to Reinstall Windows Terminal
In this method, it is recommended that you download and install the Visual Studio Code application to easily configure the Settings.json file.
When finished, press the Ctrl Alt shortcut key to open the Settings.json file in the relevant application. In this case it will open in the Visual Studio Code application.
When the terminal opens in Visual Studio, copy the following code and paste it just above the profile command:
"LaunchMode": "Default", "centerOnLaunch": True, "initial position":",",
Press Ctrl S to save changes.
This will change the Terminal settings to help it launch in the center of the Windows 11 screen.
Read Next: Windows Terminal Tips and Tricks
Press the Win X shortcut key and select Windows Terminal from the menu to open the terminal in Windows 11. Alternatively, you can type terminal in the Windows search box and select it from the results. Additionally, you can right-click the Start button and select Windows Terminal (Admin) to open elevated Windows PowerShell.
To open the Windows terminal in the context menu in Windows 11, right-click on any of your chosen folders. Next, select Show more options, and then click on Open in Windows Terminal. But if you want to run the terminal as admin, select Open in Windows Terminal (Admin).
The above is the detailed content of How to launch Terminal in the center of the screen on Windows 11. For more information, please follow other related articles on the PHP Chinese website!