| Marketplace
Sign in
Visual Studio Code>Other>Slack-VSCodeNew to Visual Studio Code? Get it now.

Slack-VSCode

Alper Gokcehan

|
80 installs
| (1) | Free
Slack extension for VS Code: Send your messages and files to Slack without leaving the editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VS Code Slack extension

Send your messages and files to Slack without leaving VS Code.

How it works?

  • Upload file to Slack

Send message

  • Send message to Slack

Upload file

Installation

You can install this extension by pressing F1 in Visual Studio Code, then typing "ex install" and selecting it from the list.

Configuration

Go to User Settings (File > Preferences > User Settings) and add the following

  "slackVSCode.token": "<your team token>",
  "slackVSCode.user": "<your username>",
  "slackVSCode.iconUrl": "<your avatar url>",
  "slackVSCode.listChannels": true,
  "slackVSCode.listGroups": false,
  "slackVSCode.listMembers": false,
  "slackVSCode.fileWithFullPath": true,
  "slackVSCode.excludeFromFullPath": "/Users/alper/dev",
  "slackVSCode.defaultRecipient": "#general"
  • "token" (required)
    • You can get the token from https://api.slack.com/docs/oauth-test-tokens
  • "user" (optional)
    • defaults to "Code"
    • Specified username will be attributed to each message
  • "iconUrl" (optional)
    • Image for the avatar, default 'http://alperg.com/vscode-128x128.png'
  • "listChannels" (optional)
    • true for listing the slack channels
  • "listGroups" (optional)
    • true for listing the slack groups
  • "listMembers" (optional)
    • true for listing the slack members
  • "fileWithFullPath" (optional)
    • true if you want to send files with full path
  • "excludeFromFullPath" (optional)
    • String to exclude from the file full path i.e. /Users/alper/dev
  • "defaultRecipient" (optional)
    • The default recipient, to send the message directly without choosing from the drop down. i.e. #general, @user

Features

  • Send messages to
    • users
    • channels
    • private groups
  • Can send message:
    • from selected code
    • from user input
  • @user, #channel supported (at the beginning of message)
  • Autofill last used channel/user/group
  • Upload files
    • current open file
    • enter file path manually
    • selected text in open file
  • Specify default recipient
  • Limit channels/groups/members

Shortcuts

  • CTRL + ALT + SHIFT + M : Send new message
  • CTRL + ALT + SHIFT + S : Send selection
  • CTRL + ALT + SHIFT + U : Upload current file

Feedback / Bug report / feature request

https://github.com/alperg/slack-vscode/issues

Credits

  • Inspired by Sozercan's plugin
  • Extension icon made by Flat Icons from flaticon.com

This extension is not created by, affiliated with, or supported by Slack Technologies, Inc.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft