当前位置:网站首页>[rust] what software should I use to develop rust? Recommended editors commonly used to support rust
[rust] what software should I use to develop rust? Recommended editors commonly used to support rust
2022-07-24 12:02:00 【Light rain youth】
Catalog
One 、 Preface
Simply speaking ,Rust You can also write with Notepad , But good tools can greatly improve efficiency is not ?

Two 、 Editor plugin
There is no separate one for Rust Editor used , But all kinds of editors have support Rust Plug in for .
1. VS Code
rust-analyzer This plug-in allows VS Code Support Rust , And support syntax highlighting and automatic completion .
https://marketplace.visualstudio.com/items?itemName=rust-lang.rust-analyzer

2. Sublime Text
Rust Enhanced Is an expansion pack . Support syntax highlighting 、 Document inspection and support Cargo Building systems .
https://github.com/rust-lang/rust-enhanced

3. IntelliJ IDEA ( recommend )
IntelliJ Of IDE At present, the market share is very high , But at present, he has not given Rust Make an editor alone .
This kind of rust Plug ins support most existing IDE, And support automatic completion 、 Syntax highlighting 、 Compile and analyze .
https://plugins.jetbrains.com/plugin/8182-rust

4. VIM
rust.vim , This is a Vim plug-in unit , Provide Rust Document detection 、 Syntax highlighting 、 format 、Syntastic Integration, etc. .
https://github.com/rust-lang/rust.vim
3、 ... and 、 With GoLand Example installation rust Plug in demo
1. Plug in market search rust
Turn on preferences , Search the market rust , The first result is the official plug-in , Click Install .

after , There will be pop ups , Prompt to install Toml plug-in unit , Click on the install .
Let's interject here , What is? Toml Well ?
TOML
Full name :Tom Of ( semantics ) obvious 、( To configure ) Minimal language .(Tom’s Obvious, Minimal Language)
Purpose
- TOML Designed to be a semantically obvious and easy to read minimal configuration file format .
- TOML It is designed to be unambiguously mapped to a hash table .
- TOML It should be easy to parse into data structures in various languages .
specifications
- TOML Case sensitive .
- TOML The document must be legal UTF-8 Coded Unicode file .
- Blank means tab (0x09) Or space (0x20).
- Line feed refers to LF(0x0A) or CRLF(0x0D0A).
Key value pair
TOML The basic building blocks of a document are key value pairs .
- The key name is to the left of the equal sign and the value is to the right .
- Blanks around key names and values are ignored .
- key 、 The equal sign and value must be on the same line ( However, some values can span multiple lines ).
form
key = “value”
bare_key = “value”
bare-key = “value”
1234 = “value”

2. Create project and Hello, world!
After the plug-in installation , No need to reboot IDE, We can choose rust 了 .

What can be found here is ,rust The plug-in automatically finds the tool chain installed in the default location Cargo.
After clicking Create project , The project will generate output by default Hello, world! Of main file .
Click in the upper right corner to run and build.

run The effect is as follows .

build The effect is as follows .

install rust After the plug-in ,IDE The overall operation and Java 、Go similar , Most people can experience it quickly .
Four 、 summary
Every craftsman needs a set of handy guys , If you use it well, you will get twice the result with half the effort , Let me share with you .
边栏推荐
- [mathematical basis of Cyberspace Security Chapter 9] finite field
- 字符串——344.反转字符串
- Browser logic vulnerability collection
- Time processing of basic library in go
- 【网络空间安全数学基础第3章】同余
- Hash - 1. Sum of two numbers - some people fall in love during the day, some people watch the sea at night, and some people can't do the first question
- Common formulas and application scenarios of discrete distribution
- 08.01 adjacency matrix
- Top and bottom of stack
- Collision, removal and cleaning
猜你喜欢

源码分析Sentry用户行为记录实现过程

Linked list - Sword finger offer interview question 02.07. linked list intersection
What is cloud native? Why is cloud native technology so popular?

Install MariaDB columnstore (version 10.3)

Jmeter-While控制器

Two important laws about parallelism

Dynamic memory management

20000 words detailed explanation, thoroughly understand es!

Is there any charge for PDF processing? impossible!

Day3: branch structure
随机推荐
String - 541. Reverse string II
【网络空间安全数学基础第3章】同余
PM's alarm: "NPM warn config global --global, --local are deprecated
哈希——202. 快乐数
Operational amplifier - Notes on rapid recovery [1] (parameters)
Markdown mathematical formula syntax
C#入门系列(二十九) -- 预处理命令
链表——142. 环形链表 II
哈希——18. 四数之和
Hash - 349. Intersection of two arrays
Hash - 1. Sum of two numbers - some people fall in love during the day, some people watch the sea at night, and some people can't do the first question
Use prometheus+grafana to monitor server performance in real time
Chapter 1 Introduction
L1-064 AI core code valued at 100 million
Judge whether a group of cards can become shunzi (the size of the king is 14,15)
Remember to optimize my personal blog once
A*与JPS
【C和指针第11章】动态内存分配
Quick check list of various XSS payloads
Chapter 0 Introduction and environment configuration