Skip to content

Instantly share code, notes, and snippets.

@gw1108
gw1108 / gist:4e57de604e10aa25d5a4b543fbd749b5
Created February 1, 2018 20:24
Visual Studio Rebind UP/DOWN to VIM shortcuts. Used for intellisense navigation.
Tools->Options->Environment->Keyboard
Edit.LineUp
Edit.LineDown
@gw1108
gw1108 / keybindings.json
Created December 18, 2017 19:51
For use in keybindings.json in vscode and the vim plugin. Feel free to use this as reference.
// keybindings for VSCode and vim. Enables system clip board, classic cut, paste, copy, find, and select-all hotkeys.
{
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.handleKeys": {
"<C-a>": false,
"<C-f>": false,
"<C-c>": false,
"<C-v>": false,
"<C-x>": false
@gw1108
gw1108 / keybindings.json
Created December 14, 2017 01:47
VSCode Keyboard Shortcuts
// Place your key bindings in this file to overwrite the defaults
// Need to Edit.LineUp in intellisense without using arrow keys? Want to navigate intellisense in VSCode without arrow keys?
// Add this to keybindings.json
[
{
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "ctrl+k s",
@gw1108
gw1108 / PositionWidth
Last active August 29, 2015 13:59
The main body of the Slice Trail Effect.
private class PositionWidth
{
public const int timeToDisappear = 3000;
public Vector2 position { get; private set; }
public float width { get; private set; }
private float elapsedTime;
public PositionWidth(Vector2 position, float width)
{