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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

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

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

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

1 回答

?
ibeautiful

TA貢獻1993條經驗 獲得超6個贊

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


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

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


如果您確實想這樣做,這里有一個示例,說明如何將菜單項添加到上下文菜單中,它會為您提供 google 的關鍵字:


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);

}


查看完整回答
反對 回復 2021-10-24
  • 1 回答
  • 0 關注
  • 144 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號