Skip to content

Instantly share code, notes, and snippets.

@moshfeu
Created September 22, 2018 22:02
Show Gist options
  • Save moshfeu/6f61dfb8e1f5e20320ba359501e2c96c to your computer and use it in GitHub Desktop.
Save moshfeu/6f61dfb8e1f5e20320ba359501e2c96c to your computer and use it in GitHub Desktop.
Get current line content in vscode extension
const {text} = activeEditor.document.lineAt(activeEditor.selection.active.line);
@cutecutecat
Copy link

thanks!

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