Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions HotTips/Groups/editor.json
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@
"content": "EDI_ExpandRegion.md",
"priority": 2,
"level": 1
},
{
"tipId": "EDI031",
"name": "Generate Tests",
"content": "EDI_CreateUnitTests.md",
"priority": 2,
"level": 1
}
]

Expand Down
16 changes: 14 additions & 2 deletions HotTips/HotTips.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Tips\images\TestingCreate.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Tips\images\tooltips.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
Expand Down Expand Up @@ -392,6 +396,14 @@
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Tips\EDI_CreateUnitTests.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
<Content Include="Tips\DEB_FormatSpecifier.md">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<IncludeInVSIX>true</IncludeInVSIX>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="ReleaseNotes.txt">
Expand Down Expand Up @@ -544,8 +556,8 @@
<Reference Include="System.Data" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.ValueTuple, Version=4.0.1.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.3.0\lib\netstandard1.0\System.ValueTuple.dll</HintPath>
<Reference Include="System.ValueTuple, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
<HintPath>..\packages\System.ValueTuple.4.4.0\lib\net461\System.ValueTuple.dll</HintPath>
</Reference>
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xaml" />
Expand Down
3 changes: 3 additions & 0 deletions HotTips/Tips/EDI_CreateUnitTests.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Create Unit Test stubs from a Class or a Method into a new or existing Test Project. Right click in the Class file Editor.

!["Create Unit Test"](images/TestingCreate.png)
Binary file added HotTips/Tips/images/TestingCreate.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion HotTips/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
<package id="Microsoft.VisualStudio.Validation" version="15.3.15" targetFramework="net461" />
<package id="Newtonsoft.Json" version="9.0.1" targetFramework="net461" />
<package id="System.Collections.Immutable" version="1.3.1" targetFramework="net461" />
<package id="System.ValueTuple" version="4.3.0" targetFramework="net461" />
<package id="System.ValueTuple" version="4.4.0" targetFramework="net461" />
</packages>
6 changes: 6 additions & 0 deletions HotTipsTests/HotTipsTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\HotTips\HotTips.csproj">
<Project>{61f73a0f-b530-4ae5-9117-76443fe1be34}</Project>
<Name>HotTips</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
Expand Down
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ How to contribute new tips:
Rough steps:
- fork the repo
- add tip in markdown file to Tips folder
- make new .md file Build Action property 'Content',
- make new .md file 'Copy to output Directory' property 'Copy Always',
- make new .md file 'Include in VSIX' property 'True',
- repeat above if you are adding an image.
- add tip entry to appropriate groups json. Create new json if new group.
- update EmbeddedTipProvider.cs if creating a new group
- if creating a new group: update EmbeddedTipProvider.cs
- uninstall Hot Tips from your main Visual Studio
- run Hot Tips extension project
- click next until you see your tip
- submit PR from your form into the justcla master