Home > System Tutorial > MAC > Visual Studio Code version on Mac

Visual Studio Code version on Mac

王林
Release: 2024-01-25 16:09:16
forward
777 people have browsed it

Foreword: This article is here to introduce you to the relevant content about the vscodemac version. I hope it will be helpful to you, let’s take a look.

Mac VScode configures CMake to compile HelloWorld

Install the software. Download the VScode installation package for Mac system; after the download is complete, unzip the zip installation package to the desktop.

After pressing Enter, you will see an initialized CMake project, including the CMakeLists.txt file and the main.cpp file. The build directory is only used to store files generated by compilation. If you need to regenerate, you can delete the directory and enter the command "mkdir build && cd build && cmake .." in the terminal to regenerate. At the same time, press the F1 key to open the console.

The overall idea is to first use the conventional method to execute the command in the terminal: mkdir build && cd build && cmake.. && make. This step can be completed in the VS Code terminal or the system terminal, the specific method does not matter.

In addition to writing task configuration files, we can also use other tools to generate release executable files, such as CMake, Makefile, etc. These tools can automatically compile, link and generate executable files, greatly improving development efficiency and code quality.

The steps to configure the Prettier tool under the mac version of VSCode are as follows: 1. Open VSCode, click "Code" on the top menu bar, select "Preferences", and then click "Settings" to open the settings interface. 2. Enter "format on save" in the search box, find the "Editor: Format On Save" option, and check it. This will automatically format the code when saving the file. 3. Click "Extensions" in the left menu, search and install the "Prettier - Code formatter" plug-in. 4. After the installation is complete, click "Explorer" in the left menu, find the project folder where you want to configure Prettier, right-click and select "New File", and enter ".prettierrc" as the file name. 5. Open the newly created ".prettierrc" file and enter the following content in it: ``` { "printWidth": 80, "tabWidth": 2, "useTabs": false, "

Can windows download the mac version of vscode?

On Lenovo Savior Y7000, you need to follow the following steps to install the Vscode software. First, download the Vscode installation file and make sure your The system is Windows 10. After the download is complete, double-click to run the installation file and then start the installation. During the installation process, you can choose the installation location and the start menu folder. In addition, you can also choose additional tasks. Once you are ready, You can start the installation. The installation process may take some time, just wait patiently.

Of course! Mac is one of the basic editors for developing Go applications. It is developed by Apple and can be used on Windows , Linux and MacOSX operating systems. It provides the syntax highlighting function of Go language by default, and after installing the Go language plug-in, you can also enjoy powerful functions such as intelligent prompts, compilation and operation. In addition, Mac is also one of the products of Microsoft. 1. Therefore, when using Mac for Go application development, you can give full play to its advantages in cross-platform development.

The details are as follows: Open the VScode software on your computer, click [Tools] at the top, and then in the pop-up Select the [iOS] option in the menu bar (as shown in the picture below). Next, select the [Pair with Mac] option in the list on the right (as shown in the picture below). This completes the first and second steps. Operation.

Please follow the steps below to install the Mac OS patch: First, download the Mac OS installation patch (it is recommended to use Unlock-all-v130, if you use VMware 11, please make sure the version is above 120). Unzip the downloaded folder, and then find the install.cmd file in the unzipped folder (if it is version 202, please use the win-install.cmd file). Right-click the install.cmd file and select Run as administrator. After the installation is complete, please restart Computer.

vscodemac版本(vscode mac版本)

How to configure and compile Python under VScode on mac

1. The specific configuration is as follows: Install vscode, download python from the python official website and install it. Search and install the plug-in Python. .ctrl shift p, enter PythonSelectPythonInterpreter to install the plug-in pylint, or enter SelectLinter to right-click and select RunpythonfileinTerminal.

2. First, install the python plug-in. This is mainly to facilitate debugging and running python programs. As for To install, you can directly search for python in the Extensions extension in vscode.

3. First, you need to ensure that the Python plug-in of VScode is installed. Open the Python script. You can drag it in directly, click on the file, and click on the preferences. User settings, this time the user settings configuration file will be created. Then search for the Python keyword in the left file Ctrl F and find the line where pythonPath is located.

4. Install the Python plug-in. After entering the main interface, press Ctrl p, enter: ext install Python, and download the first one. Download the python plug-in to use code auto-completion when writing Python scripts.

5. Start debugging below. It is obvious to choose the python option: then VSCode automatically generates the launch.json file for us. This file has many configuration items, and some options take their values ​​​​from settings.json by default (such as config.python.pythonPath).

The mac version of the most complete vscode configuration prettier tool

1. The steps to configure the Prettier tool under the mac version of VSCode are as follows: 1. Open VSCode, click "Code" on the top menu bar, select "Preferences", and then click "Settings" to open the settings interface. 2. Enter "format on save" in the search box, find the "Editor: Format On Save" option, and check it. This will automatically format the code when saving the file. 3. Click "Extensions" in the left menu, search and install the "Prettier - Code formatter" plug-in. 4. After the installation is complete, click "Explorer" in the left menu, find the project folder where you want to configure Prettier, right-click and select "New File", and enter ".prettierrc" as the file name. 5. Open the newly created ".prettierrc" file and enter the following content in it: ``` { "printWidth": 80, "tabWidth": 2, "useTabs": false, "

2. Operation steps to install the software. Download the VScode installation package for Mac system; after the download is complete, unzip the zip installation package to the desktop.

3. GitLens is a Git code management tool , you can view the code modification history, branches and submission records and other information in VSCode. After installing the GitLens plug-in, you can easily perform version control. Prettier Prettier is a code formatting tool that can automatically adjust the format of the code to make it more standardized And easy to read.

4. Install the lowcode plug-in for vscode. This plug-in is an efficiency tool. Scaffolding is just one of its functions. For more functions, you can view the documentation. This episode only talks about scaffolding.

5. In the development of vue, vscode can install plug-ins for developing specifications: Prettier: specification js ESLint: specification js Vuter: specification template stylus in the .vue file: specification stylus Note: The following configuration is based on the plug-in settings introduced next. It will not take effect if the plug-in is not installed.

6. First, install the VSCode plug-in. Second, install the PrettierandESLint plug-in in your project. Third, configure the Prettier format code. Finally, configure ESLint.

How to switch the python version in macvscode

First you have to go to the Python official website to download the mac version of Python 4 and install it.

Open the built-in terminal, enter python -V, the version is 2 and use alias, alias the path of python to python3. The path is in the first screenshot of this article.

I just changed mac and reconfigured the environment for writing python scripts in sublime. This is because under mac cmd, the command line python The default is python2. If you have downloaded python3, then the relative environment variable is python. We only need to modify the python interpreter startup method in the python configuration file of sublimeREPL.

Enter python-V directly on the command line, and there will be Version prompt. pip --version//Check the pip version and you will find that it is the pip in the Python package that comes with Mac. Then you should understand that all pip install or update you run are installed under the 7 package.

MAC has the python6 version installed by default. If you want to start this version, enter python directly to enter. If the latest version, such as 7, is installed, enter python3 to enter.

Windows How to pair VScode with Mac computer

1. First, open the VScode software on your computer, click [Tools] at the top, and then click [iOS] in the pop-up menu bar according to the arrow in the picture below. 】option. The second step is in the list on the right, according to the arrow in the picture below, click the [Pair with Mac] option.

2. Right-click the Bluetooth icon and click Add Bluetooth Device. Click Add Bluetooth device and select Bluetooth. Many devices were found and we selected the keyboard to connect. Enter the above numbers on the keyboard to pair and press Enter to confirm. Successful installation.

3. Download the Visual Studio Code installation package for the 64-bit Linux operating system from the Microsoft server. The link is go.microsoft.com/fwlink/? LinkID=534108. Use wget here to download and save to the tmp/VSCODE directory. Run the following commands in the terminal or console.

Conclusion: The above is all the content about the vscodemac version introduced by this site. I hope it will be helpful to everyone. If you want to know more about this, remember to bookmark and follow this site.

The above is the detailed content of Visual Studio Code version on Mac. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
mac
source:shouxicto.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template