Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23276

How to create a shortcut to print a variable (vscode)

$
0
0

How can I create a custom shortcut for generating code that will print a selected variable in vscode?

[1] arr = [1,2,3,4]  # I press double left mouse button on 'arr'[2] print(arr)       # Then I press <magic shortcut> (Ctrl+p for example)                     # And vscode generate [2] row automatically

You can provide your method for fast debugging by print().


Viewing all articles
Browse latest Browse all 23276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>