Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>HindiScript SnippetsNew to Visual Studio Code? Get it now.
HindiScript Snippets

HindiScript Snippets

Atikin Verse

| (0) | Free
Smart snippets for HindiScript programming language (Devanagari keywords). Created by Atikin Verse.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🪔 HindiScript Snippets

A fun, beginner-friendly, Hindi language-based snippet extension for Visual Studio Code. It allows Indian developers to code using Devanagari keywords instead of English, making programming more relatable, fun, and culturally connected.

Created by Atikin Verse.


📌 Snippets (Syntax Mapping)

🧠 HindiScript Syntax 💻 JavaScript Equivalent
लिखो "नमस्ते" console.log("नमस्ते")
अगर (x > 5) if (x > 5) {
अन्यथा } else {
दोहराओ (i = 0; i < 5) for (let i = 0; i < 5; i++) {
जबतक (x < 10) while (x < 10) {
कार्य जोड़(a, b) function add(a, b) {
वापस a + b return a + b
क्लास छात्र class Student {
आयात मॉड्यूल import module
निर्यात डेटा export data
त्रुटि "संदेश" throw new Error("संदेश")
टिप्पणी // comment
चर x = 10 let x = 10
स्थिर y = 20 const y = 20

🚀 Features

  • Devanagari-based keywords: अगर, अन्यथा, दोहराओ, कार्य, लिखो, क्लास etc.
  • Clean placeholders & tabstops for quick coding.
  • Language configuration (brackets, comments).
  • Works smoothly inside VS Code with Hindi files (.hs, .hindiscript).
  • Made with ❤️ by Atikin Verse.

⚙️ Installation (Local Setup)

  1. Install Node.js & VS Code.

  2. Install VSCE:

    npm install -g @vscode/vsce
    
  3. Clone the repository:

    git clone https://github.com/atikinverse/hindiscript-snippets.git
    cd hindiscript-snippets
    
  4. Package the extension:

    npm run package
    

    → Generates: hindiscript-snippets-1.0.0.vsix

  5. Open VS Code → Extensions (Ctrl+Shift+X) → ... menu → Install from VSIX... → select .vsix.

  6. Create a HindiScript file (.hs / .hindiscript) → try snippets like अगर, लिखो, etc.


⚙️ Installation (Quick)

npm install -g hindiscript

🧪 Usage

CLI द्वारा HindiScript फाइल चलाएँ:

hindiscript path/to/file.hs

Example:

hindiscript samples/hello.hs

🏁 Getting Started

1. Create a .hs file Example: hello.hs

# 1️⃣ Hello World

कार्य मुख्य() {
    छापो("नमस्ते दुनिया!");
}

परीक्षण1();

# Output: नमस्ते, दुनिया!

## 2️⃣ Variable Declaration

कार्य मुख्य() {
    केवल नाम = "आटिकिन वर्स";
    छापो("मेरा नाम है: " + नाम);
}

परीक्षण2();

# Output: मेरा नाम है: आटिकिन वर्स

# 3️⃣ If-Else

कार्य मुख्य() {
    केवल अंक = 75;
    यदि (अंक > 50) {
        छापो("आप पास हो गए!");
    } अन्यथा {
        छापो("आप फेल हो गए!");
    }
}

परीक्षण3();

# Output: आप पास हो गए!

# 4️⃣ While Loop

कार्य मुख्य() {
    केवल i = 1;
    जबतक (i <= 5) {
        छापो("संख्या: " + i);
        i = i + 1;
    }
}

परीक्षण4();

# Output: 

संख्या: 1
संख्या: 2
संख्या: 3
संख्या: 4
संख्या: 5


# 5️⃣ Array

कार्य मुख्य() {
    केवल फल = ["आम", "केला", "सेब"];
    छापो("पहला फल: " + फल[0]);
    छापो("कुल फल: " + फल.लंबाई);
}

परीक्षण5();

# Output: 

पहला फल: आम
कुल फल: 3


# 6️⃣ For Loop

कार्य मुख्य() {
    पुनः (केवल i = 0; i < 3; i = i + 1) {
        छापो("गिनती: " + i);
    }
}

परीक्षण6();

# Output: 

गिनती: 0
गिनती: 1
गिनती: 2


# 7️⃣ Function with Return

कार्य जोड़ो(a, b) {
    वापसी a + b;
}

कार्य मुख्य() {
    केवल परिणाम = जोड़ो(10, 20);
    छापो("परिणाम: " + परिणाम);
}

परीक्षण7();

# Output: परिणाम: 30



# 8️⃣ Object Usage

कार्य मुख्य() {
    केवल छात्र = { नाम: "सुरेश", उम्र: 20 };
    छापो("छात्र का नाम: " + छात्र.नाम);
}

परीक्षण8();

# Output: छात्र का नाम: सुरेश

# 9️⃣ Array Methods

कार्य मुख्य() {
    केवल संख्याएँ = [1, 2, 3, 4];
    संख्याएँ.जोड़ो(5);
    छापो("नया ऐरे: " + संख्याएँ);
}

परीक्षण9();

# Output: नया ऐरे: 1,2,3,4,5

# 🔟 Async + Timeout

अप्रत्याशित कार्य मुख्य() {
    छापो("1 सेकंड बाद संदेश आएगा...");
    समयबाद(() => {
        छापो("नमस्ते, मैं देर से आया!");
    }, 1000);
}

परीक्षण10();

# Output:

1 सेकंड बाद संदेश आएगा...
नमस्ते, मैं देर से आया!

📂 Language ID

  • id: hindiscript
  • extensions: .hs, .hindiscript

🔖 License

This project is licensed under the MIT License.


🧑‍💻 Creator

Built with ❤️ by Atikin Verse For culture + coding innovations 🚀


FOLLOW US ON For more information:

Join our social media for exciting updates, news, and insights! Follow us on :

ACCOUNTS USERNAME
FACEBOOK atikinverse
INSTAGRAM atikinverse
LINKEDIN atikinverse
TWITTER (X) atikinverse
THREADS atikinverse
PINTREST atikinverse
QUORA atikinverse
REDDIT atikinverse
TUMBLR atikinverse
SNAPCHAT atikinverse
SKYPE atikinverse
GITHUB atikinverse

HindiScript — हिन्दी में मज़ेदार कोडिंग! 🚀

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft