第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

如何在 Visual Studio 2017 中為 .sql 文件創(chuàng)建自定義擴(kuò)展名

如何在 Visual Studio 2017 中為 .sql 文件創(chuàng)建自定義擴(kuò)展名

C#
桃花長相依 2021-10-24 17:37:13
我對 Visual Studio 擴(kuò)展很陌生。我需要為 Visual Studio 2017 創(chuàng)建一個(gè)新擴(kuò)展,這個(gè)擴(kuò)展是用于 .sql 文件的。如果解決方案具有 .sql 文件,并且用戶右鍵單擊 .sql 文件,那么我需要有新的自定義選項(xiàng)來在 Wordpad 中打開文件。任何幫助或指導(dǎo)將不勝感激。
查看完整描述

1 回答

?
ibeautiful

TA貢獻(xiàn)1993條經(jīng)驗(yàn) 獲得超6個(gè)贊

只需右鍵單擊解決方案資源管理器中的文件 > 打開方式。然后簡單地配置它:


http://img1.sycdn.imooc.com//617529600001900205720368.jpg

Visual Studio 是最好的 IDE 之一,如果不是最好的,不確定您為什么要使用寫字板,但至少這將使您免于制作擴(kuò)展。


如果您確實(shí)想這樣做,這里有一個(gè)示例,說明如何將菜單項(xiàng)添加到上下文菜單中,它會(huì)為您提供 google 的關(guān)鍵字:


Microsoft.VisualStudio.CommandBars.CommandBar menuBarCommandBar = ((Microsoft.VisualStudio.CommandBars.CommandBars)_applicationObject.CommandBars)["MenuBar"];


CommandBarControl toolsControl = menuBarCommandBar.Controls[toolsMenuName];

CommandBarPopup toolsPopup = (CommandBarPopup)toolsControl;



Command command = commands.AddNamedCommand2(_addInInstance, "AddinMultiLineWatch", "AddinMultiLineWatch", "Executes the command for AddinMultiLineWatch", true, 59, ref contextGUIDS, (int)vsCommandStatus.vsCommandStatusSupported+(int)vsCommandStatus.vsCommandStatusEnabled, (int)vsCommandStyle.vsCommandStylePictAndText, vsCommandControlType.vsCommandControlTypeButton);


if((command != null) && (toolsPopup != null))

{

    command.AddControl(toolsPopup.CommandBar, 1);

}


查看完整回答
反對 回復(fù) 2021-10-24
  • 1 回答
  • 0 關(guān)注
  • 151 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號