Skip to content

Commit

Permalink
VS2019中微软已将菜单合并入标题栏, 按Alt显示标题栏功能失效, 遂添加快捷键Ctrl+1, Ctrl+1(参考https://bl…
Browse files Browse the repository at this point in the history
  • Loading branch information
hlizard committed Jul 3, 2022
1 parent acf4283 commit 354d08c
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 18 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/packages
obj/
Debug/
*proj.user
/.vs/
Release/
4 changes: 4 additions & 0 deletions HideTitleBar.v15/HideTitleBarPackage.vsct
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
</Bitmaps>
</Commands>

<KeyBindings>
<KeyBinding guid="guidHideTitleBarPackageCmdSet" id="HideTitleBarId" key1="1" mod1="Control" key2="1" mod2="Control" editor="guidVSStd97" />
</KeyBindings>

<Symbols>
<!-- This is the package guid. -->
<GuidSymbol name="guidHideTitleBarPackage" value="{5fa47fb4-6814-4058-a2ac-ca3157d9b654}" />
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Install-Package Microsoft.VisualStudio.CoreUtility -Version 15.0.26201
Install-Package Microsoft.VisualStudio.Imaging -Version 15.0.26201
Install-Package Microsoft.VisualStudio.OLE.Interop -Version 7.10.6070
Install-Package Microsoft.VisualStudio.Shell.15.0 -Version 15.0.26201
Install-Package Microsoft.VisualStudio.Shell.Framework -Version 15.0.26201
Install-Package Microsoft.VisualStudio.Shell.Interop -Version 7.10.6071
Install-Package Microsoft.VisualStudio.Shell.Interop.10.0 -Version 10.0.30319
Install-Package Microsoft.VisualStudio.Shell.Interop.11.0 -Version 11.0.61030
Install-Package Microsoft.VisualStudio.Shell.Interop.12.0 -Version 12.0.30110
Install-Package Microsoft.VisualStudio.Shell.Interop.8.0 -Version 8.0.50727
Install-Package Microsoft.VisualStudio.Shell.Interop.9.0 -Version 9.0.30729
Install-Package Microsoft.VisualStudio.TextManager.Interop -Version 7.10.6070
Install-Package Microsoft.VisualStudio.TextManager.Interop.8.0 -Version 8.0.50727
Install-Package Microsoft.VisualStudio.Threading -Version 15.0.240
Install-Package Microsoft.VisualStudio.Utilities -Version 15.0.26201
Install-Package Microsoft.VisualStudio.Validation -Version 15.0.82
Install-Package Microsoft.VSSDK.BuildTools -Version 15.0.26201

34 changes: 17 additions & 17 deletions HideTitleBar.vsix2/source.extension.vsixmanifest
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="0150ddd7-afc7-4cf5-a849-ae9b77ae2f9b" Version="1.2.1" Language="en-US" Publisher="hlizard" />
<DisplayName>Hide Title Bar</DisplayName>
<Description xml:space="preserve">Automatically hides the Title Bar of Visual Studio main window after opening a solution.</Description>
<Icon>Icon.VS2017.png</Icon>
<PreviewImage>Preview.VS2017.png</PreviewImage>
<Tags>hide, Title Bar, visual studio title bar, title bar size, title bar height</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,16.0)" DisplayName="Visual Studio core editor" />
</Prerequisites>
<Metadata>
<Identity Id="0150ddd7-afc7-4cf5-a849-ae9b77ae2f9b" Version="1.3.0" Language="en-US" Publisher="hlizard" />
<DisplayName>Hide Title Bar</DisplayName>
<Description xml:space="preserve">Automatically hides the Title Bar of Visual Studio main window after opening a solution.</Description>
<Icon>Icon.VS2017.png</Icon>
<PreviewImage>Preview.VS2017.png</PreviewImage>
<Tags>hide, Title Bar, visual studio title bar, title bar size, title bar height</Tags>
</Metadata>
<Installation>
<InstallationTarget Id="Microsoft.VisualStudio.Community" Version="[15.0,)" />
</Installation>
<Dependencies>
<Dependency Id="Microsoft.Framework.NDP" DisplayName="Microsoft .NET Framework" d:Source="Manual" Version="[4.6,)" />
</Dependencies>
<Prerequisites>
<Prerequisite Id="Microsoft.VisualStudio.Component.CoreEditor" Version="[15.0,)" DisplayName="Visual Studio core editor" />
</Prerequisites>
</PackageManifest>
2 changes: 1 addition & 1 deletion HideTitleBar/HideTitleBar.v15.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@
</ItemGroup>
<ItemGroup>
<None Include="Key.snk" />
<None Include="..\HideTitleBar.v15\packages.config" />
<None Include="..\HideTitleBar.vsix2\source.extension.vsixmanifest">
<SubType>Designer</SubType>
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="Resources\HideTitleBar.png" />
Expand Down
20 changes: 20 additions & 0 deletions HideTitleBar/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Microsoft.VisualStudio.CoreUtility" version="15.0.26201" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Imaging" version="15.0.26201" targetFramework="net46" />
<package id="Microsoft.VisualStudio.OLE.Interop" version="7.10.6070" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.15.0" version="15.0.26201" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Framework" version="15.0.26201" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop" version="7.10.6071" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop.10.0" version="10.0.30319" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop.11.0" version="11.0.61030" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop.12.0" version="12.0.30110" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop.8.0" version="8.0.50727" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Shell.Interop.9.0" version="9.0.30729" targetFramework="net46" />
<package id="Microsoft.VisualStudio.TextManager.Interop" version="7.10.6070" targetFramework="net46" />
<package id="Microsoft.VisualStudio.TextManager.Interop.8.0" version="8.0.50727" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Threading" version="15.0.240" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Utilities" version="15.0.26201" targetFramework="net46" />
<package id="Microsoft.VisualStudio.Validation" version="15.0.82" targetFramework="net46" />
<package id="Microsoft.VSSDK.BuildTools" version="15.0.26201" targetFramework="net46" developmentDependency="true" />
</packages>

0 comments on commit 354d08c

Please sign in to comment.