XION
DiscordGithub
  • Welcome to XION
  • XION'S Core
    • Concepts
      • Generalized Chain Abstraction
      • Intro to Account Abstraction
      • XION's Meta Accounts
      • Meta Accounts Design
      • Architecture & Tech Glossary
      • Use Cases
  • developers
    • XION Quick Start
      • Zero to App in 5 Minutes
        • Launch a User Map App on XION in 5 Minutes
        • React Native Mobile App on XION in 5 Minutes
    • Mobile App Development
      • Set up your XION Mobile Development Environment
      • Create Mobile App and Integrate Meta Account Authentication
      • Building a React Native Mobile App with Abstraxion (Xion.js)
    • Getting Started (Advanced)
      • Set Up Local Environment
        • Setting up your Local Smart Contract Development Environment for XION
          • Setting up your XION Smart Contract Development Environment on Windows (WSL2 + Ubuntu)
        • Set Up an Integrated Development Environment (IDE)
        • Interacting with Xion Chain using Xion Daemon
      • Your First Contract
        • Deploying Your First Smart Contract on XION
      • Gasless UX & Permission Grants
        • Enabling Gasless Transactions with Treasury Contracts
      • App Development
        • Account Abstraction with Gasless Transactions
        • Interact with XION via your Backend Service
    • Re-using Existing Contracts
      • Deployed Contracts on XION
      • Non-Fungible Tokens (NFTs)
      • Fungible Tokens
      • Marketplace
      • Multisig
      • Proxy Contracts
      • Membership Management
      • Governance
      • Valuts
      • SCV Audited Contracts
    • Web3 for Web2 Developers
      • Web2 vs Web3 App Architecture: A Comparison
      • Misconceptions and Misapplied Web2 Patterns
      • Recommended Architecture for Apps on XION
    • Building for Mainnet
      • Xion Testnet: Your Development Playground
      • Building with Audited & Battle-Tested Contracts
      • Community Engagement: Building Support for Your app
      • Deploying to Xion Mainnet
        • Smart Contract Audits: Process, Costs & Support
        • Governance Process to Deploying Smart Contracts to Mainnet
    • Learn & Build
      • Token Factory
        • Creating, Minting, and Interacting with a Token Factory Token
        • Building a React dApp to Interact with Token Factory Tokens
        • Integrating a Token Factory Token in a Smart Contract
      • Websockets
        • WebSockets with Xion: Real-Time Communication
      • Oracles
        • Creating a Smart Contract with Pyth Oracle Integration
      • Indexers: Optimized Data Retrieval
        • SubQuery
      • Use Cases
        • Building a Per-User Data Storage App
        • Build a TODO App using the Collection-Document Storage Smart Contract
    • Reference and Resources
      • Requesting XION Testnet Tokens
      • Public Endpoints & Resources
      • Block Explorers
      • Governance
        • Deploying Smart Contracts to Mainnet
      • Developer Tools: Abstract
      • IBC Denoms on XION Networks
      • Frequently Asked Questions
      • XION Token Contract Addresses on EVM Chains
  • Nodes & Validators
    • Run a Node
      • System Specifications
      • Build the Xion Daemon
      • Download the Xion Daemon
      • Configure the Xion Daemon
        • app.toml
        • client.toml
        • config.toml
      • Join the XION Network
        • xion-testnet-1
      • Confirm node is running
    • Become a Validator
      • Initial Setup
      • Obtain a XION Wallet Address
      • Obtain Funds
        • Testnet
      • Create Validator
    • IBC Relayers and Tokens
  • Others
    • Resources
Powered by GitBook
On this page
  • Prerequisites
  • Install Visual Studio Code (VS Code)
  • Configuring VS Code for Rust Development
  • Installing rust-analyzer
  • Installing CodeLLDB
  • Cosmy wasmy

Was this helpful?

Edit on GitHub
  1. developers
  2. Getting Started (Advanced)
  3. Set Up Local Environment

Set Up an Integrated Development Environment (IDE)

Integrated Development Environment Setup for XION Smart Contract Development

PreviousSetting up your XION Smart Contract Development Environment on Windows (WSL2 + Ubuntu)NextInteracting with Xion Chain using Xion Daemon

Last updated 2 months ago

Was this helpful?

A well configured Integrated Development Environment (IDE) can significantly streamline your smart contract development. While there are many options available for Rust development, the following IDEs stand out as top choices:

  • – Provides the best overall experience with strong Rust support (Recommended).

  • – A JetBrains IDE tailored specifically for Rust development, offering deep integration with Cargo, advanced debugging, and robust code navigation.

  • – A versatile IDE with Rust support through plugins like RustDT, suitable for developers who prefer an extensible and customizable environment.

Among these, we recommend VS Code for its excellent Rust support, ease of configuration, and built-in frontend development capabilities, eliminating the need for multiple tools.

Prerequisites

  • Before proceeding, ensure that the Rust compiler (rustc) is installed. You can refer to the for step-by-step instructions on setting up Rust before continuing.

Install Visual Studio Code (VS Code)

VS Code is a widely used, free, and open-source IDE known for its powerful features, including a rich code editor, built-in Git integration, and robust debugging tools. With an extensive marketplace of extensions, VS Code provides excellent support for various programming languages, including Rust, Go, C++, Java, Python, and more. It is available on Windows, macOS, and Linux.

Follow the steps below to install VS Code on your operating system:

See the page for a complete list of available installation options.

To install via the terminal use one of the following methods based on your operating system:

  • Debian/Ubuntu (via .deb package):

    sudo apt install ./<file>.deb  # Replace <file> with the downloaded .deb file
  • Fedora/RHEL (via .rpm package):

    sudo rpm -i <file>.rpm  # Replace <file> with the downloaded .rpm file
  • Snap (Universal Linux Install):

    sudo snap install --classic code
  1. Download the macOS version from the .

  2. Open the downloaded .zip file and move the Visual Studio Code app to the Applications folder.

  3. (Optional) Install the Command Line Tools by running:

    sudo ln -s /Applications/Visual\ Studio\ Code.app/Contents/Resources/app/bin/code /usr/local/bin/code

    This allows you to open VS Code from the terminal using the code command.

Configuring VS Code for Rust Development

To enable Rust support in VS Code you need to install the following extensions:

  • rust-analyzer: Provides syntax highlighting, code completion, error checking, and inline documentation.

  • CodeLLDB: Enables debugging capabilities for Rust and other compiled languages.

Installing rust-analyzer

Follow these steps to install the extension:

  1. Go to the Extension panel

  2. In the Search field enter rust-analyzer

  3. Click the install button to the bottom right of rust-analyzer

Installing CodeLLDB

The CodeLLDB extension is a native debugger essential for debugging Rust applications.

Follow these installation steps:

  1. Open VS Code and navigate to the Extensions panel.

  2. Search for CodeLLDB.

  3. Click the Install button next to CodeLLDB.

Cosmy wasmy

For comprehensive usage details, refer to the .

is a VS Code plugin designed to streamline the development and interaction with CosmWasm smart contracts. It comes pre-configured with popular CosmWasm testnets, making chain interactions seamless during testing. With Cosmy Wasmy, you can manage all interactions directly within VS Code, eliminating the need for the CLI.

For details on installation, configuration, and available commands and features, explore .

Visual Studio Code (VS Code)
RustRover
Eclipse
Installation Guide
Download Visual Studio Code
VS Code website
CodeLLDB Manual
Cosmy Wasmy
Cosmy Wasmy