- VS Code Tips and Tricks: https://github.com/Microsoft/vscode-tips-and-tricks
- VS Code Keyboard Bindings: https://code.visualstudio.com/docs/customization/keybindings
- Keyboard Reference: MacOS, Windows, Linux
- TypeScript Gitter chat channel: https://gitter.im/Microsoft/TypeScript
- TypeScript Coding Style Guidelines based on AirBnB:
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
<connectionStrings> | |
<!--<add name="NorthwindSlimContext" connectionString="Data Source=.\sqlexpress;Initial Catalog=NorthwindSlim;Integrated Security=True;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />--> | |
<add name="NorthwindSlimContext" connectionString="Data Source=(localdb)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\NorthwindSlim.mdf;Integrated Security=True" providerName="System.Data.SqlClient" /> | |
</connectionStrings> |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
using HelloMvcWithDI.Entities; | |
using HelloMvcWithDI.Patterns; | |
namespace HelloMvcWithDI.Tests | |
{ | |
public class FakeProductRepository : IProductRepository | |
{ | |
private List<Product> _products = new List<Product> |
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
# Sets the new remote | |
git remote add origin <remote repository URL> | |
# Verifies the new remote URL | |
git remote -v | |
# Pushes the changes | |
git push origin master |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"window.reopenFolders": "none", | |
"editor.fontSize": 15 | |
} |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ "key": "shift+cmd+g", "command": "workbench.view.git" }, | |
{ "key": "shift+cmd+x", "command": "workbench.action.tasks.terminate" }, | |
{ "key": "cmd+.", "command": "editor.action.quickFix", "when": "editorTextFocus" } | |
] |
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
import * as express from "express"; | |
import { Request, Response, NextFunction } from "express"; | |
import * as bodyParser from "body-parser"; | |
import * as path from "path"; | |
import { productsRouter } from "./routes/products"; | |
namespace express_router { | |
let app = express(); |
After a PR is ready to merge you should:
- Pull in other people's commits
- Rebase your commit on top of theirs
- Squash your commits into a final commit
- Force push your commit to origin
- Pull upstream commits from staging and rebase so that the final commit comes after them.
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
export function convertObjects<Target>(objects: Object[], types: Target[]) { | |
for (let i = 0; i < objects.length; i++) { | |
Object.assign(types[i], objects[i]) | |
} | |
} |
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
// Place your key bindings in this file to overwrite the defaults | |
[ | |
// End a running background task | |
{ | |
"key": "shift+cmd+x", | |
"command": "workbench.action.tasks.terminate" | |
}, | |
// Show Source Control | |
{ | |
"key": "shift+cmd+g", |
OlderNewer