I customized it with Visual Studio Code (mainly for python), so I will summarize it

There are many articles on how to customize with VScode, but there is no page that can be finished in one shot (it is natural because the usage differs depending on the person), so I decided to summarize my customization.

First of all, I will write about how I use VScode and what I want to use.

Use of VScode

The most common is to write python code. This is because I mainly use machine learning in my research, so I want to make it easier to write here. There is also the option of jupyter, but I don't want to use it too much due to customizability issues. (Completely likes and dislikes)

Also, I think it's okay to leave everything to me, but I also want to write a web application using Flask, which I make as a hobby, using VScode.

I also want to manage the version on GitHub, so I want to make it easier.

Finally, I want to be able to use key bindings so that I can write code without moving my hand with the mouse.

This is a desire, but I will study to master the previously frustrated vim keybindings.

This is the application that I am currently thinking about.

As you can see, it's like a self-introduction with a feeling of a fledgling programmer, but I will customize VScode to realize the above. (I will write a memorandum about what I have already introduced)

I will write the miscellaneous feelings myself, but I will link to the introduction.

VScode Japanese

Introduction method https://qiita.com/nanamesincos/items/5c48ff88a4eeef0a8631

This is Miso in the foreground, but first of all, it is an article about my own Japanese localization.

I personally think that Japaneseization should not be done (because it may not be possible to obtain secondary information or information in the first place because it is not possible to obtain information overseas).

However, I have translated it into Japanese because it may interfere with the use of VS code due to my English ability.

I would like to refer to something like VScode best practices in English-speaking countries.

Complementary function by TabNine

Introduction method https://qiita.com/blue0513/items/2634fcb3757629124c87

I have an impression that this is a good idea. Maybe it's just not coded enough to realize the awesomeness of AI.

Normally, it is enough to put VScode's python extension function normally.

It's just cool, so it feels like I'm putting it in.

Python Extension Pack

Installation link (You should click Install from here, or you will be told to open the .py file with VScode) https://marketplace.visualstudio.com/items?itemName=donjayamanne.python-extension-pack

A loved one who automatically installs various useful extensions for python.

For the time being, if you put this in, you can start writing python code. Let's put this in.

Completion with Visual Studio IntelliCode

Complementary features for various languages included in the Python Extension Pack.

Very amazing ().

Seriously the most useful. Because it can be complemented to the integrated development environment (although it is derived from the integrated development environment because it is a complementary function of Visual Studio in the first place) I even feel like I can't write code without it.

(Maybe it was derived from AI all the time. Then maybe this is all that is needed?)

Make Anaconda Prompt available in terminals on VScode

Not an extension, but how to install https://qiita.com/_meki/items/5b4f06318f1a0986c55c

Since I often write python code for machine learning, I use Anaconda to put in all the computing libraries.

In addition to that, since Anaconda functions are used for creating virtual environments, whether or not Anaconda Prompt can be used on the VS code terminal has a strong effect on comfort.

A virtual environment is indispensable because we end up using the python2 system for various reasons.

However, I introduced it because I can only use Powershell or Command Prompt without changing the settings.

It's comfortable because you don't have to open Anaconda Prompt in a separate window.

I have to study setting.json.

Automate python format

Introduction method https://qiita.com/firedfly/items/00c34018581c6cec9b84

Introduced because I thought that the code became bright red in VScode and the syntax error was hard to see As a result, the code that follows the rules is automatically generated to improve readability, and errors are easier to see, so I'm very old.

Summary

For the time being, this is the one I am currently using.

It is also a memorandum, so I would like to update it from time to time.

Recommended Posts

I customized it with Visual Studio Code (mainly for python), so I will summarize it
I made a segment tree with python, so I will introduce it
Build Python development environment with Visual Studio Code
Django with Python Tools 2.2 for Visual Studio (PTVS 2.2)
Settings for Python coding in Visual Studio Code
[Visual Studio Code] [Python] Tasks.json + problemMatcher settings for Python
Every time I draw a graph with python, I check it, so I will summarize only the simplest usage
I was able to mock AWS-Batch with python, moto, so I will leave it
A note I was addicted to when running Python with Visual Studio Code
Make Visual Studio Code autocomplete for python external libraries
Python development environment with Windows + Anaconda3 + Visual Studio Code
Python development environment with Windows + Python + PipEnv + Visual Studio Code
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Debugging
Code review with machine learning Amazon Code Guru now supports Python so I tried it
Set up a Python development environment with Visual Studio Code
Enable the virtualenv Python virtual environment for Visual Studio Code
Build Python3 for Windows 10 on ARM with Visual Studio 2019 (x86) on Windows 10 on ARM
Execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people) Environment construction
Java with Visual Studio Code (Part 2)
Try it when Visual Studio Code can't load a Python module
Installation of Visual studio code and installation of python
I want to do it with Python lambda Django, but I will stop
Use Jupyter Notebook with Visual Studio Code on Windows 10 + Python + Poetry + pyenv-win
I didn't understand the behavior of numpy's argsort, so I will summarize it.
Build an environment to execute C ++ functions from Python with Pybind11 (for Windows & Visual Studio Code people)
I installed the library with Visual Studio Code, but Unable to import
Python Tools for Visual Studio Installation Guide
I couldn't import the python module with VSCODE, but I could do it on jupyterlab, so I searched for the cause (2)
Somehow the code I wrote worked and I was impressed, so I will post it
[Python] I introduced Word2Vec and played with it.
I have read a survey paper on time-series anomaly detection, so I will summarize it.
A Python beginner made a chat bot, so I tried to summarize how to make it.
Specific sample code for working with SQLite3 in Python
Try debugging Python on Raspberry Pi with Visual Studio.
VS Code settings for developing in Python with completion
I like Python's comprehension, so I compared it with map
Tips for speeding up python code correctly with numba
Japanese output when dealing with python in visual studio
AWS Lambda now supports Python so I tried it
AWS SDK for Python (Boto3) development in Visual Studio 2017
[Visual Studio Code] [Python] [Windows] Support for garbled Japanese characters in Python in VS Code task / debug output
I was hooked for 2 minutes with the Python debugger pdb
What has changed since I started using Visual Studio Code
Do something like a Python interpreter in Visual Studio Code
Install python and Visual Studio Code on windows10 (April 2020 version)
[I made it with Python] XML data batch output tool
It's Halloween so I'll try to hide it with Python
[Python] Create a screen for HTTP status code 403/404/500 with Django
[Python] pytest mocker.patch has finally worked, so I will write down what I found with just momentum