Posts

Showing posts with the label vscode

How to backup your Visual Studio Code extensions

If you want to avoid to use a github account to syncronize your extensions, you can do it fastly as follows: code --list-extensions | xargs -L 1 echo code --install-extension This sentence, you must write it in your terminal. It generates an output with a list of your extensions, like: code --install-extension rogalmic.bash-debug Now, when you would like to import the same extensions, just put the previous output in your terminal. Also, you can copy your extensions folder in ~/.vscode/extensions Enjoy it!

How to insert code in an interactive python console througth Visual Studio Code

Image
After run your code, to edit or add new instructions is not neccesary run all your code again. A good idea is to run a partial or section code. To do it, you must run your code as interactive mode. You have 3 ways to do it with vscode: 1.- Task You can create a task to run python in interactive mode. Press Ctrl+Shift+P and type: Configure Task Paste the following code: { "version" : "2.0.0" , "tasks" : [ { "label" : "Run File" , "command" : "python3 -i ${file}" , "type" : "shell" , "group" : { "kind" : "build" , "isDefault" : true }, "presentation" : { "reveal" : "always" , "focus" : true } } This task is ...