1. 程式人生 > 實用技巧 >quake-iii原始碼_Visual Studio的Quake模式控制檯-使用熱鍵開啟命令提示符

quake-iii原始碼_Visual Studio的Quake模式控制檯-使用熱鍵開啟命令提示符

quake-iii原始碼

quake-iii原始碼

Back in March of 2013 when Phil Haack was deep into GitHub for Windows development we were going back and forth in email about how to quickly get into a shell from a specific project. I hate always having to paste in a "CD somedirectory" so I usually use some kind of "Command Prompt Here" right click menu.

早在2013年3月, Phil Haack深入到GitHub進行Windows開發時,我們就在電子郵件中來回詢問如何快速從特定專案進入Shell。 我討厭總是必須貼上“ CD somedirectory”,所以我通常使用某種“ Command Prompt Here”(右鍵單擊選單)。

TIP: A lot of people don't realize that you can Shift-Right-Click on a folder in Windows Explorer and you'll automatically get a "Command Prompt Here" menu item!

提示:很多人沒有意識到您可以在Windows資源管理器中按住Shift並右鍵單擊一個資料夾,然後會自動獲得“此處命令提示”選單項!

Anyway, Phil and I were emailing and he said (remember that GitHub for Windows (GHfW) was in development)...and I've always loved how the Quake console pops up when you press ~ in Quake.

無論如何,Phil和我正在通過電子郵件傳送郵件,他說(記住,Windows的GitHub(GHfW)正在開發中)...而且我一直很喜歡在Quake中按〜時Quake控制檯會彈出的方式。

I feel ashamed I didn't know this, but I just discovered that CTRL+ALT+D brings up the shell when in GHfW. We are considering ways to make our keyboard shortcuts more discoverable. Kind of like the `?` support we have on GitHub.com. We should totally make that a ~ shouldn't we? Like in Quake, Doom, etc.

我不知道這一點我感到feel愧,但是我發現在GHfW中,CTRL + ALT + D會彈出外殼。 我們正在考慮使鍵盤快捷鍵更易於發現的方法。 有點像GitHub.com上的`?`支援。 我們應該完全將其設為〜,不是嗎? 就像在《雷神之錘》,《毀滅戰士》中一樣。

And they did. When you're in GitHub for Windows just press ~ and you'll automatically get a new command prompt (or Bash Shell or PowerShell) and be dropped in to the current folder's directory. It's my most favorite feature about GitHub for Windows.

他們做到了。 當您在Windows的GitHub上時,請按〜,您將自動獲得一個新的命令提示符(或Bash Shell或PowerShell),並將其放入當前資料夾的目錄中。 這是我最喜歡的GitHub for Windows功能。

I mentioned this to Mads Kristensen yesterday and said we should build this feature into Visual Studio. Rather than waiting, he just created a little single purpose extension called Open Command Line. It works in Visual Studio 2012, 2013, and 2015.

昨天我向Mads Kristensen提到了這一點,並說我們應該將此功能內建到Visual Studio中。 他沒有等待,而是建立了一個名為Open Command Line的單一目的擴充套件。 它適用於Visual Studio 2012、2013和2015。

Open Command Line

But it's the hotkeys that make it awesome. Now I'm not sure how I lived without it. Alt-Space and it opens up a prompt right where I need it. Go download the Open Command Line free Visual Studio extension now, and remember, it works in Visual Studio Community which is also free! You can set it to open CMD, PowerShell, or a custom prompt.

但這是使它變得很棒的熱鍵。 現在我不確定沒有它怎麼生活。 Alt-Space,它會在我需要的位置開啟提示。 立即下載免費的Open Command Line Visual Studio擴充套件,並記住,它在Visual Studio Community中也是免費的! 您可以將其設定為開啟CMD,PowerShell或自定義提示。

Oh, by the way, the overlay there that shows what hotkey I'm using, that's Carnac.

哦,順便說一下,那裡的覆蓋物顯示了我正在使用的熱鍵,即Carnac

相關連結 (Related Links)



Sponsor: Big thanks to the folks at Infragistics for sponsoring the feed this week! Responsive web design on any browser, any platform and any device with Infragistics jQuery/HTML5 Controls. Get super-charged performance with the world’s fastest HTML5 Grid - Download for free now!

贊助商:非常感謝Infragistics的人們本週贊助了feed! 帶有Infragistics jQuery / HTML5控制元件的任何瀏覽器,任何平臺和任何裝置上的響應式Web設計。 使用世界上最快HTML5網格獲得超強的效能-立即免費下載!

關於斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·漢塞爾曼(Scott Hanselman)是前教授,前金融首席架構師,現在是演講者,顧問,父親,糖尿病患者和Microsoft員工。 他是一位失敗的單口相聲漫畫家,一個玉米種植者和一本書的作者。

facebook twitter subscribe About 關於 Newsletter 時事通訊 Hosting By 主持人 Hosted in an Azure App Service

翻譯自: https://www.hanselman.com/blog/quake-mode-console-for-visual-studio-open-a-command-prompt-with-a-hotkey

quake-iii原始碼