8
我認爲這很容易谷歌,但我錯了。Visual Studio 2013中的停靠CMD終端窗口
我只想將常規的cmd提示符終端窗口作爲Visual Studio中的停靠窗口,就像Package Manager控制檯一樣。但我似乎無法找到辦法。
可能嗎?
我認爲這很容易谷歌,但我錯了。Visual Studio 2013中的停靠CMD終端窗口
我只想將常規的cmd提示符終端窗口作爲Visual Studio中的停靠窗口,就像Package Manager控制檯一樣。但我似乎無法找到辦法。
可能嗎?
你可以搜索你通過這個代碼片段與system
或CreateProcess
推出真正的控制檯窗口:
HWND hCmd = ::FindWindow(_T("ConsoleWindowClass"), _T("aa")); // "aa" is the name/title of the window
if (hCmd != NULL) {
// Set new parent
// hParent is the handle to the new parent window (a dockable window)
::SetParent(hCmd, hParent);
// TODO: set child's window style to your liking...
}
那麼有Open Command Line作爲VS擴展,但遺憾的是它並沒有停靠的命令提示符下,所以它只是你的一半。