<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Md. Lutful Hasan</title>
    <description>The latest articles on DEV Community by Md. Lutful Hasan (@lubdhak31).</description>
    <link>https://dev.to/lubdhak31</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3400822%2F9bac4f0c-7e39-4044-8888-3cd0f804906c.png</url>
      <title>DEV Community: Md. Lutful Hasan</title>
      <link>https://dev.to/lubdhak31</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lubdhak31"/>
    <language>en</language>
    <item>
      <title>Gift of Tech: A Custom Build Over the Wheels</title>
      <dc:creator>Md. Lutful Hasan</dc:creator>
      <pubDate>Fri, 05 Sep 2025 03:27:52 +0000</pubDate>
      <link>https://dev.to/lubdhak31/gift-of-tech-a-custom-build-over-the-wheels-1m63</link>
      <guid>https://dev.to/lubdhak31/gift-of-tech-a-custom-build-over-the-wheels-1m63</guid>
      <description>&lt;p&gt;Working in &lt;a href="https://pcbstore.net/" rel="noopener noreferrer"&gt;PCB store&lt;/a&gt; is fun, see lots of customers, experienced their thought is quite amazing. In PCB Store, we basically offer custom and pre-built PCs. So, in the store, we witness many things related to builds. Last month, in the store, we got requested for a custom build. But here is story.&lt;/p&gt;

&lt;p&gt;The context is the son is a typical teenager who loves bikes and wants to ride with his fellow homies. After his college graduation, the son wants a higher CC bike from his father as a gift. But the PC-enthusiastic father has a different plan in mind. Father gifts him a top-of-the-line gaming PC instead of a higher CC bike.&lt;/p&gt;

&lt;p&gt;So, as it's a gift from a father to his son, we take time and build a PC with the high-end components from our store shelves.&lt;/p&gt;

&lt;p&gt;Not only that, but we also published a video about this build in our PCB YouTube channel online, to appropriate this father who decided to not give the bike to this son.&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/g6zHjk8dROY"&gt;
&lt;/iframe&gt;
                         &lt;/p&gt;

&lt;h3&gt;
  
  
  Back to the build:
&lt;/h3&gt;

&lt;p&gt;As their budget was slightly high, we decided to use the best and latest component from our &lt;a href="https://pcbstore.net/" rel="noopener noreferrer"&gt;store&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Firstly, choose AMD Ryzen 9 9950X3D as a processor, as his top priority is gaming. As Ryzen 9 9950X3D is part of the Zen 5 architecture, it will give perfectly balanced output in the case of gaming and productivity. So, even in his higher study, he can do his additional research and others' work without any problems.&lt;/p&gt;

&lt;p&gt;In the GPU section, we give them our latest and high-end GPU card from our shelf, the ASUS ROG Strix GeForce RTX 5090 Platinum, the fastest gaming GPU right now. Not to say much about it in here, 'cause all know what kind of beast it is in the gaming section. But the most amazing part of this GPU card, which many reviewers skip and do not mention in their video, is their GPU Tweak 3 software. With this software, you can check the temperature of different parts of the GPU. Also, you can overclock the GPU from this software. Also can under-volt and adjust fan speed.&lt;/p&gt;

&lt;p&gt;Now, we need a motherboard to fit all the things. As a motherboard customer, choose ROG Crosshair Hero X870. It's a good choice with Ryzen 9 9950X3D and 5090, but here is a catch. We set RAM in the A2 and B2 slots, as we have PCIe lane reductions and give half of its power to this motherboard.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz34e8dggwsu381aw9pms.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz34e8dggwsu381aw9pms.png" alt=" " width="800" height="461"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Gaming Performance Test
&lt;/h3&gt;

&lt;p&gt;As it's a gaming-focused build, we test with 2 games, Black Myth: Wukong and Cyberpunk 2077. We test these two games in two gaming configuration environments. In one environment, we focused on rasterisation in native resolutions. And for another test, we enable ray tracing and do a rasterisation test in the cinematic preset, which may be a little bit overclocked.&lt;/p&gt;

&lt;p&gt;In Black Myth: Wukong, in 1440p, the card gives us a decent playable framerate, but in 4k, with ray tracing in native resolution, the framerate drops continuously; sometimes we get 30 FPS.&lt;br&gt;
Here I am attach two image of our results&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxpch4roq2s3kd9nxf1ep.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxpch4roq2s3kd9nxf1ep.png" alt="In 4k Testing with raytracing" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhs4smbjvrqdvlf01f72v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhs4smbjvrqdvlf01f72v.png" alt="1440p testing" width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In Cyberpunk 2077, we get decent good framerate in both test in both resolution . In 2025, it's still difficult to use  native resolution in Ray-tracing. Also, attaching two image and results of our testing&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3bk5u63ztp6yus191gld.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3bk5u63ztp6yus191gld.png" alt="1440p testing" width="800" height="376"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybudzeutssjv8ioxcszt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fybudzeutssjv8ioxcszt.png" alt="In 4k Testing" width="800" height="375"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In here I just share a glimpse  of our daily routine. We do lot a stuff and it just a tip of the ice-burg.&lt;/p&gt;

</description>
      <category>pcgaming</category>
      <category>retrogaming</category>
      <category>asus</category>
      <category>pcb</category>
    </item>
    <item>
      <title>Building PC for "Private AI Infrastructure"</title>
      <dc:creator>Md. Lutful Hasan</dc:creator>
      <pubDate>Sun, 31 Aug 2025 18:51:01 +0000</pubDate>
      <link>https://dev.to/lubdhak31/building-pc-for-private-ai-infrastructure-509i</link>
      <guid>https://dev.to/lubdhak31/building-pc-for-private-ai-infrastructure-509i</guid>
      <description>&lt;p&gt;When it's comes to handling sensitive data and generating highly specific outputs, nowadays most of the company, lab or researchers, specially in like sectors medical, healthcare, finance, trying to develop their own custom made AI Agent or model, tailored to their unique requirements and build their AI infrastructures.&lt;/p&gt;

&lt;p&gt;Inside PC Builders Bangladesh office, we often get offer or request to build others server, PC and list go on.&lt;/p&gt;

&lt;p&gt;Last month, we got a request to build a Private AI PC (Infrastructure) to maintain their research work with their private data. So, the team buckle up and start this project. It looks simple but the collecting the Nvidia GPU is tough for logistics team. Total cost of this build $16,930 USD. Hence set-up cost a lot but in long-term, it gives lower operational cost to them.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/mSKFIuMZnZk?si=OwjKfMv21pR83F3d" rel="noopener noreferrer"&gt;&lt;em&gt;&lt;strong&gt;Click here you can watch the entire build&lt;/strong&gt;&lt;/em&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  So, what component use to build this PC and why?
&lt;/h3&gt;

&lt;p&gt;we use  &lt;strong&gt;AMD Ryzen Threadripper 7980X&lt;/strong&gt; as processor. This is perfect for their job. 'Cause Threadripper 7980X offers top-tier multi-threaded and PCIe lane capacity, which is absolute for AI servers, especially those combining many GPUs. In budget, it offers performance per dollar compared to many Intel Xeon and AMD EPYC CPUs when it comes to AI and model training workloads.&lt;/p&gt;

&lt;p&gt;In any AI Infrastructures, the most important thing is GPU, specifically NVIDIA GPU. NVIDIA GPUs considered essential assets for AI and machine learning tasks. In this build we use, &lt;strong&gt;NVIDIA RTX A6000&lt;/strong&gt;, which is suitable option in my opinion, as it gives massive VRAM capacity, which very compatible to handle larger models (30B+ parameters with quantization), bigger datasets, or higher batch sizes, without memory limitations(what client needed). Also, ECC memory and workstation drivers offers Professional-Grade Reliability. want to use NVIDIA Blacwall GPU, but it still not available in consumer market. Maybe, primarily NVIDIA only offers the giant company, who pays well to them.&lt;/p&gt;

&lt;p&gt;Then come to the Motherboard. In this section selected &lt;strong&gt;Asrock TRX50 WS&lt;/strong&gt;, a good match for pairing with the Ryzen Threadripper and RTX A6000 GPU, as it offers up to 7 PCIe 4.0 x16 slots, critical for multi-GPU AI training setups.&lt;/p&gt;

&lt;p&gt;In cooler section, try &lt;strong&gt;Abee Stem 360&lt;/strong&gt;. I think it's an not bad choice,as it has special metal water cooling head known for its durability, also it good choice for maintaining the high thermal output of powerful components like the Threadripper 7980X.&lt;/p&gt;

&lt;p&gt;In the entire build, the cheapest components is PC-Case. In my view as long as it offers excellent airflow to keep all hardware cooled effectively , it's OK.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;&lt;strong&gt;At a glance of all components we used:&lt;/strong&gt;&lt;/em&gt;&lt;br&gt;
&lt;em&gt;Processor: AMD Ryzen Threadripper 7980X&lt;br&gt;
GPU: RTX A600&lt;br&gt;
Motherboard: Asrock TRX50 WS&lt;br&gt;
Ram: Samsung 32GB ECC Server Ram (great choice for this build)&lt;br&gt;
Memory: WD BlackSN7100 2TB&lt;br&gt;
PC Case: Corsair 3500X&lt;br&gt;
Power Supply: Thermalright TG1350 1350W 80 Plus Gold Power Supply&lt;br&gt;
Cooler: Abee Stem 360&lt;/em&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>An Ideal PC for "Private AI Infrastructure"(?)</title>
      <dc:creator>Md. Lutful Hasan</dc:creator>
      <pubDate>Sun, 31 Aug 2025 03:47:19 +0000</pubDate>
      <link>https://dev.to/lubdhak31/an-ideal-pc-for-private-ai-infrastructure-829</link>
      <guid>https://dev.to/lubdhak31/an-ideal-pc-for-private-ai-infrastructure-829</guid>
      <description>&lt;p&gt;In 2025, almost every week some new AI model resealing  in Hugging Face. Most of which are fine-tuned versions of large language models such as ChatGPT, Llama, or other open-source variants.&lt;/p&gt;

&lt;p&gt;However, when it's comes to handling sensitive data and generating highly specific outputs, nowadays most of the company, lab or researchers, specially in like sectors medical, healthcare, finance, trying to develop their own custom made AI Agent or model, tailored to their unique requirements and build their AI infrastructures. &lt;/p&gt;

&lt;p&gt;Focusing on  Privacy and Security is the main reason to adopt this practice, especially for companies in heavily regulated sectors like healthcare and finance. Also, building in house AI infrastructures helps in cost optimization. Initial setup might cost a lot but Private AI gives lower long-term operational costs, optimized infrastructure investment, and reduced dependency on external providers. It also offers higher accuracy, shameless integration, better data governance, which help to achieve more reliable, context-aware results that directly enhance business operations. &lt;/p&gt;

&lt;p&gt;But when I search online there are relatively few videos and blogs. Most of them are, some tech reviewer review big giant corporation's pre-build AI laptop or desktop server what they offers to consumer. Very few actually build this type of PC from scratch. But the adopting the private AI Infrastructures culture increases day by day. &lt;/p&gt;

&lt;p&gt;Fortunately, there are exceptions. In YouTube I found a channel named PC Builders Bangladesh, with video, where they build a PC specifically designed for private AI infrastructures targeting sectors like healthcare and finance They give a huge efforts to build this. Total cost of this build** $16,930–$17,400 USD**. Their content provides practical insights for organizations and individuals interested in building their own AI infrastructure with moderate budget.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/mSKFIuMZnZk?si=vujasbgGJ8f8ziLm" rel="noopener noreferrer"&gt;Here you can watch the entire build-&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  So, what component they use to build this PC?
&lt;/h2&gt;

&lt;p&gt;They use &lt;strong&gt;AMD Ryzen  Threadripper 7980X as processor&lt;/strong&gt;. This is the perfect things for the job they want to do. 'Cause Threadripper 7980X offers top-tier multi-threaded and PCIe lane capacity, which is absolute  for AI servers, especially those combining many GPUs. It offers superior performance per dollar compared to many Intel Xeon and AMD EPYC CPUs when it comes to AI and model training workloads.&lt;/p&gt;

&lt;p&gt;In any AI Infrastructures, the most important thing is GPU, specifically NVIDIA GPU. NVIDIA GPUs considered essential assets for AI and machine learning tasks. In this build they use, &lt;strong&gt;NVIDIA RTX A6000&lt;/strong&gt;, which is suitable option in my opinion. It gives massive VRAM capacity, which very compatible to handle larger models (30B+ parameters with quantization), bigger datasets, or higher batch sizes, without memory limitations.With ECC memory and workstation drivers, it offers Professional-Grade Reliability. In video, they said, they want to use NVIDIA Blacwall GPU, but it still not available in consumer market. Maybe, primarily NVIDIA only offers the giant company, who pays well to them. &lt;/p&gt;

&lt;p&gt;Then come to the Motherboard. In this section they selected &lt;strong&gt;Asrock TRX50 WS&lt;/strong&gt;, a solid match for pairing with the Ryzen Threadripper and RTX A6000 GPU, as it offers up to 7 PCIe 4.0 x16 slots, critical for multi-GPU AI training setups.&lt;/p&gt;

&lt;p&gt;Another cool part of this build is cooler. They try** Abee Stem 360**, an ideal choice for this type of build. Why ideal? As it features special metal water cooling head known for its durability and significantly improved heat dissipation efficiency, which help to maintain  the high thermal output of powerful components like the Threadripper 7980X.&lt;/p&gt;

&lt;p&gt;In the entire build, the cheapest components is PC-Case. But this is acceptable as long as it offers excellent airflow, which is critical to keeping all hardware cooled effectively and maintaining system stability during intensive AI workloads.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;At a glance of all components they used:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;_Processor: AMD Ryzen Threadripper 7980X&lt;/p&gt;

&lt;p&gt;GPU: RTX A6000&lt;/p&gt;

&lt;p&gt;Motherboard: Asrock TRX50 WS&lt;/p&gt;

&lt;p&gt;Ram: Samsung 32GB ECC Server Ram (great choice for this build) &lt;/p&gt;

&lt;p&gt;Memory: WD BlackSN7100 2TB&lt;/p&gt;

&lt;p&gt;PC Case: Corsair 3500X&lt;/p&gt;

&lt;p&gt;Power Supply: Thermalright TG1350 1350W 80 Plus Gold Power Supply&lt;/p&gt;

&lt;p&gt;Cooler: Abee Stem 360&lt;br&gt;
_&lt;/p&gt;

&lt;p&gt;As PC enthusiastic and working with AI,ML, I think they tried their best and they also done some great build. I'll commanded this channel if you want to appreciate some awesome build.  &lt;/p&gt;

</description>
    </item>
    <item>
      <title>How to run "C++" program in Zed Editor.(for noob)</title>
      <dc:creator>Md. Lutful Hasan</dc:creator>
      <pubDate>Thu, 31 Jul 2025 17:43:01 +0000</pubDate>
      <link>https://dev.to/lubdhak31/how-to-run-c-program-in-zed-editor-42ee</link>
      <guid>https://dev.to/lubdhak31/how-to-run-c-program-in-zed-editor-42ee</guid>
      <description>&lt;p&gt;If you're reading this article, you're likely already familiar with the Zed Editor — a Rust-based, open-source, multiplayer code editor .As an open-source enthusiast, I always try to use and support open-source tools, software or anything, and Zed stands out as a truly next-generation code editor. Designed for speed and collaboration, it delivers an ultra-fast, intelligent, and responsive coding experience by leveraging multiple CPU cores and GPU acceleration.&lt;/p&gt;

&lt;p&gt;When I first tried to execute my C++ program in Zed, I encountered a few challenges. Unlike traditional IDEs, Zed is largely script-driven, meaning you need to configure custom tasks via settings to execute programs. Since there’s limited beginner-friendly documentation on this, I wanted to share my experience to help others navigate this process. In this article, I’ll Walk through how to run a C++ program in the Zed Editor, step by step. I am using Fedora 42 as an operating system while testing that script. &lt;/p&gt;

&lt;h2&gt;
  
  
  Setup C++ Compiler
&lt;/h2&gt;

&lt;p&gt;First, ensure you have a C++ compiler installed, such as g++ or clang++ in your system&lt;/p&gt;

&lt;h2&gt;
  
  
  Configure Clangd in Zed (Optional for language support):
&lt;/h2&gt;

&lt;p&gt;Zed uses &lt;code&gt;clangd&lt;/code&gt; as the language server for C++ support and formatting. You can configure the path to your clangd compiler in &lt;code&gt;settings.json:&lt;/code&gt; use this type script. &lt;br&gt;
For accessing  &lt;code&gt;settings.jso&lt;/code&gt;, open settings from Zed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
"lsp": {
  "clangd": {
    "binary": {
      "path": "/path/to/clangd",
      "arguments": []
    }
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Create a Task to Compile and Run:
&lt;/h2&gt;

&lt;p&gt;Use Zed's "tasks" feature to automate compiling and running your C++ code. For this follow the steps, &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Open the Tasks Configuration:&lt;/strong&gt;&lt;br&gt;
1.In Zed, open the Command Palette by pressing Ctrl+Shift+P (Linux) or Cmd+Shift+P (Mac).  &lt;/p&gt;

&lt;p&gt;2.Type &lt;code&gt;zed: open tasks&lt;/code&gt; and select it to open the tasks configuration file (&lt;code&gt;tasks.json&lt;/code&gt;). This can be a global file (&lt;code&gt;~/.config/zed/tasks.json&lt;/code&gt;) for all projects or a local file (&lt;code&gt;.zed/tasks.json&lt;/code&gt;) for the current project. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Add a Task Entry:&lt;/strong&gt;&lt;br&gt;
Inside the JSON array, add a new object representing your task. For example, to compile and run a C++ program:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
  {
    "label": "Compile, Run, and Extra Commands",
    "command": "g++ $ZED_FILE -o $ZED_STEM &amp;amp;&amp;amp; ./$ZED_STEM &amp;amp;&amp;amp; echo &amp;amp;&amp;amp; echo 'Program finished' &amp;amp;&amp;amp; echo",
    "use_new_terminal": false,
    "allow_concurrent_runs": false,
    "reveal": "always",
    "hide": "never",
    "shell": "system"
  }
]




&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Here, &lt;code&gt;$ZED_FILE&lt;/code&gt; is the current C++ source file.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;$ZED_STEM is that filename without extension, used as the executable name.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;The commands run sequentially:&lt;br&gt;
    1.Compile the C++ file with g++.&lt;br&gt;&lt;br&gt;
    2. Run the produced executable.&lt;br&gt;
    3. Print a message (echo 'Program finished').&lt;br&gt;&lt;br&gt;
    4. List files in the directory (ls).&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;If want to extra command to add&lt;/strong&gt;&lt;br&gt;
Define a new task with a command string that includes multiple shell commands separated by &amp;amp;&amp;amp; or ; depending on whether you want them to stop on failure or run regardless&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Save the File:&lt;/strong&gt;&lt;br&gt;
The tasks.json file will save your task.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run the Task:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Command Palette again. &lt;/li&gt;
&lt;li&gt;Type task: spawn and select your "Compile and Run C++" task.
&lt;/li&gt;
&lt;li&gt;The output of the compilation and running will appear in the integrated terminal. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Now,You can run C++ program in Zed text editor. &lt;/p&gt;
&lt;h2&gt;
  
  
  How to set Keymap for execute the  program:
&lt;/h2&gt;

&lt;p&gt;If you want to set key bindings for execute the program, then maybe these steps helpful for you. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Open your Zed keymap configuration:&lt;/strong&gt;Open the command palette with &lt;code&gt;Ctrl+Shift+P (or Cmd+Shift+P)&lt;/code&gt; and type&lt;code&gt;Zed: Open Keymap&lt;/code&gt;.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add a binding for your custom shortcut:&lt;/strong&gt;&lt;br&gt;
then edit keymap.json with this template. Here I write for the snippet the first one&lt;br&gt;
&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[
  {
    "context": "Workspace",
    "bindings": {
      "shift-e": ["task::Spawn", { "task_name": "Compile, Run, and Extra Commands" }]
    }
  }
]


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;&lt;p&gt;The task_name string must exactly match the "label" in your tasks.json (including capitalization, spaces, and punctuation).&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;"shift-e" is my desired shortcut. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Save the file and restart Zed.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Now, pressing shift+e will run your entire C++ program with a single keystroke, just like VS Code's "Run" button, without needing to use the Command Palette&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  How to create snippet
&lt;/h2&gt;

&lt;p&gt;Follow these steps, to create any snippet for c++ program.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Open Zed’s command palette (&lt;code&gt;Ctrl+Shift+P or Cmd+Shift+P&lt;/code&gt;).  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Select snippets: configure snippets.  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Choose C++ (c++.json) or create if it doesn't exist&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Paste the above JSON snippet inside the file (make sure it’s valid JSON with commas if you add multiple snippets). &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Save the file. &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;In C++ files, type cppmain and press tab to expand.  &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Let, I am here writing a simple c++ snippet for main function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;{
  "C++ main template": {
    "prefix": "cppmain",
    "body": [
      "#include &amp;lt;bits/stdc++.h&amp;gt;",
      "using namespace std;",
      "",
      "int main()",
      "{",
      "   $0 ",
      "    ",
      "    ",
      "    cout &amp;lt;&amp;lt; endl;",
      "    return 0;",
      "}"
    ],
    "description": "C++ main function template with bits/stdc++.h"
  },
  "Another snippet": {
    "prefix": "as",
    "body": ["// Additional snippet here"],
    "description": "Example snippet"
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So, what we do here: &lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;prefix: "cppmain" — This is the trigger text for the snippet.
&lt;/li&gt;
&lt;li&gt;body: An array of strings each representing a line in the snippet.
&lt;/li&gt;
&lt;li&gt;$0 is correctly placed to mark the final cursor position inside the main function.
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;em&gt;Just make sure:&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;This snippet object is inside the main JSON snippet file for C++ (usually cpp.json).  &lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;If you have multiple snippets in the same file, remember to separate them by commas. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>programming</category>
      <category>cpp</category>
      <category>beginners</category>
      <category>development</category>
    </item>
  </channel>
</rss>
