⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Net; | |
using NUnit.Framework; | |
namespace Songkick | |
{ | |
[TestFixture] | |
public class Scraper | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void Foo() { | |
IHttpEndpoint httpEndpoint = new HttpEndpoint() | |
.At(new Uri("Http://localhost:8080/api")) | |
.WithNewContext(); | |
httpEndpoint | |
.Stub(x => x.Get("/")) | |
.Return("Index") | |
.OK(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--merge --result=%merged %mine %base %theirs --title1="Mine : %yname" --title2="Merged: %mname" --title3="Theirs : %tname" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<system.net> | |
<defaultProxy > | |
<proxy proxyaddress="http://localhost:8888" /> | |
</defaultProxy> | |
</system.net> |
Loosely ordered with the commands I use most towards the top. Sublime also offer full documentation.
Ctrl+C | copy current line (if no selection) |
Ctrl+X | cut current line (if no selection) |
Ctrl+⇧+K | delete line |
Ctrl+↩ | insert line after |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_ReSharper* | |
*.user | |
*.suo | |
*.pidb | |
*.userprefs | |
obj | |
bin | |
Bin | |
logs | |
ndepend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"a" slist => {1,2}; | |
"b" slist => {58, a[1]}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Test] | |
public void Should_match_any_request_that_was_made_with_specific_query_params() | |
{ | |
var queryParams = new Dictionary<string, string> { { "a", "a" } }; | |
var stubHttp = HttpMockRepository.At(_hostUrl); | |
stubHttp.Stub(x => x.Get("/endpoint/handler")) | |
.Return("OK") | |
.OK(); |