适用于Visual Studio的终端

时间:2024-03-12 22:54:52

Whack Whack Terminal is an experimental free plugin for Visual Studio 2017 that aims to bring a full terminal inside of Visual Studio. Those of you who use Visual Studio Code have long enjoyed the integrated xtermjs terminal. Justin Clareburt worked with Daniel Griffen on hacking together this solution as an experiment. There is no plans for it to be more than an experiment, I'm told BUT I always say vote with your feet. I figure a few tens of thousands of installs and someone will decide to build it in. I have long used Mads Kristensen's Quake Mode that lets me launch a command prompt from VS, but ever since the NuGet Package manager showed up in VS many years ago, I've always wanted a real FULL terminal in VS.

Whack Whack Terminal是Visual Studio 2017的实验性免费插件,旨在将完整的终端带入Visual Studio。 那些使用Visual Studio Code的人很早就使用了集成的xtermjs终端。 贾斯汀·克莱尔伯特(Justin Clareburt )与丹尼尔·格里芬(Daniel Griffen)合作研究了该解决方案作为实验。 有人告诉我,没有什么可以比做实验更多的了,但是我总是说用脚投票。 我估计有成千上万的安装,有人会决定安装它。我长期以来一直使用Mads Kristensen的Quake模式,该模式可让我从VS启动命令提示符,但自从多年前NuGet程序包管理器出现在VS中以来, ,我一直想要VS中的真正FULL终端。

Today, the code is alpha quality, so expect it will actively improve, and don't be mean in the GitHub Issues. They've versioned it at 0.2, and is aiming for parity with the features in the terminal in VSCode for version 1.0.

今天,该代码具有Alpha质量,因此希望它会得到积极改进,而不是GitHub Issues中的卑鄙行为。 他们将其版本控制为0.2,旨在与VSCode 1.0终端中的功能保持一致。

Still, go install WhackWhack in VS2017 NOW! Nothing ventured, nothing gained!

不过,现在就去VS2017中安装WhackWhack吧! 不入虎穴,焉得虎子!

适用于Visual Studio的终端

I'm sure they will update it with lots of great features like changing the fonts and colors, but if you want to hack away (as of the date of this blog post) you can mess around in C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\Extensions\sjogt3hc.qcl\daytona with ZERO WARRENTY EXPRESS OR IMPLIED. I went into there and edited the default.css file by removing all the comments and changing the background-color to black, the text to white, and adding a font-family choosing Consolas. If you do that, you'll likely need to uninstall/reinstall at some point when REAL customizations come. Again, alpha. But awesome.

我确定他们会使用很多很棒的功能(例如更改字体和颜色)来更新它,但是如果您想**(截至本博客发布之日),您可以在C:\ Program Files(x86) \ Microsoft Visual Studio \ 2017 \ Community \ Common7 \ IDE \ Extensions \ sjogt3hc.qcl \ daytona,带有“零担保”的明示或暗示。 我去了那里并编辑了default.css文件,方法是删除所有注释,将背景色更改为黑色,将文本更改为白色,然后添加字体家族,选择Consolas。 如果这样做,则在REAL自定义项出现时,您可能需要在某个时候卸载/重新安装。 再次,阿尔法。 但是真棒。

"Whack" is a shorthand word for a slash (forward or otherwise) and the default hotkey is Ctrl+\, Ctrl+\. That's twice. so Ctrl WHACK WHACK. When you use the hotkey it will open the folder in the same folder as the currently selected project in the Solution Explorer.

“ Whack”是斜杠的缩写(正向或其他),默认热键为Ctrl + \,Ctrl + \。 那是两次。 所以Ctrl WHACK WHACK。 使用热键时,它将在解决方案资源管理器中打开与当前选定项目相同的文件夹。

If you want to change the hotkey to something else (like a more sensible Ctrl+~) you can do it in Tools | Options | Keyboard like this.

如果您想将热键更改为其他功能(例如更合理的Ctrl +〜),则可以在“工具” |“快捷方式”中进行操作。 选项| 这样的键盘。

适用于Visual Studio的终端

Then assign a new one by clicking in Press Shortcut Keys and typing "Ctrl+`" (which to me, is Ctrl ~ on my keyboard, without the shift)

然后通过单击“按快捷键”并键入“ Ctrl +`”(对我来说,是我的键盘上的Ctrl〜,而不进行移位)来分配一个新的键盘

适用于Visual Studio的终端

By default the shell is PowerShell, but there's also places to support bash/Ubuntu, etc. For now, if you want bash, you can type C:\windows\sysnative\bash.exe in the terminal.

默认情况下,外壳程序是PowerShell,但是也有支持bash / Ubuntu等的地方。现在,如果要使用bash,可以在终端中键入C:\ windows \ sysnative \ bash.exe。

And just to freak you out, here's top running inside Visual Studio.

只是想吓到你,这是在Visual Studio中运行的*。

适用于Visual Studio的终端

Enjoy! Install "WhackWhackTerminal" from here.

请享用! 从此处安装“ WhackWhackTerminal”

关于斯科特 (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员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

适用于Visual Studio的终端
适用于Visual Studio的终端
适用于Visual Studio的终端
About   关于 Newsletter 时事通讯
Hosting By 主持人
适用于Visual Studio的终端

翻译自: https://www.hanselman.com/blog/a-proper-terminal-for-visual-studio