Skip to content

Instantly share code, notes, and snippets.

@naddison36
Created May 22, 2016 12:05
Show Gist options
  • Save naddison36/1b4301c15ee1cb8ae31efcd7c69a2218 to your computer and use it in GitHub Desktop.
Save naddison36/1b4301c15ee1cb8ae31efcd7c69a2218 to your computer and use it in GitHub Desktop.
Adding compile shortcuts to the VS Code Solidity extension
// Place your key bindings in this file to overwrite the defaults
[
{ "key": "ctrl+c", "command": "solidity.compile",
"when": "editorTextFocus" },
{ "key": "shift+ctrl+c", "command": "solidity.compile.active",
"when": "editorTextFocus" }
]
@naddison36
Copy link
Author

The above config adds keyboard shortcuts for the two compile commands in the Solidity extension for VS Code. The two commands are:

  1. Compile the current solidity file
  2. Compile all solidity files (*.sol)

Open the keybindings.json file using the VS Code menu Code->Preferences->Keyboard Shortcuts. The keybindings.json file should be in the right hand plane.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment