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);
@e3duardo
Copy link

e3duardo commented Jul 8, 2021

thanks!!

@zimonitrome
Copy link

thanks!

@ttrace
Copy link

ttrace commented Apr 28, 2022

thanks!

@cutecutecat
Copy link

thanks!

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