Vibe Coding with GitHub Copilot Enhancing Productivity by Leveraging GitHub Copilot Inside Visual Studio (Naga Santhosh Reddy Vootukuri)(Z-Library)

Author: Naga Santhosh Reddy Vootukuri

编程

No Description

📄 File Format: PDF
💾 File Size: 6.6 MB
12
Views
0
Downloads
0.00
Total Donations

📄 Text Preview (First 20 pages)

ℹ️

Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

📄 Page 1
Vibe Coding with GitHub Copilot Enhancing Productivity by Leveraging GitHub Copilot Inside Visual Studio — Naga Santhosh Reddy Vootukuri
📄 Page 2
Vibe Coding with GitHub Copilot Enhancing Productivity by Leveraging GitHub Copilot Inside Visual Studio Naga Santhosh Reddy Vootukuri
📄 Page 3
Vibe Coding with GitHub Copilot: Enhancing Productivity by Leveraging GitHub Copilot Inside Visual Studio ISBN-13 (pbk): 979-8-8688-2195-0 ISBN-13 (electronic): 979-8-8688-2196-7 https://doi.org/10.1007/979-8-8688-2196-7 Copyright © 2025 by Naga Santhosh Reddy Vootukuri This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation, broadcasting, reproduction on microfilms or in any other physical way, and transmission or information storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now known or hereafter developed. Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark. The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to proprietary rights. While the advice and information in this book are believed to be true and accurate at the date of publication, neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or omissions that may be made. The publisher makes no warranty, express or implied, with respect to the material contained herein. Managing Director, Apress Media LLC: Welmoed Spahr Acquisitions Editor: Smriti Srivastava Editorial Assistant: Jessica Vakili Cover image from Pixabay.com Distributed to the book trade worldwide by Springer Science+Business Media New York, 1 New York Plaza, New York, NY 10004. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a Delaware LLC and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc). SSBM Finance Inc is a Delaware corporation. For information on translations, please e-mail booktranslations@springernature.com; for reprint, paperback, or audio rights, please e-mail bookpermissions@springernature.com. Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales web page at http://www.apress.com/bulk-sales. Any source code or other supplementary material referenced by the author in this book is available to readers on GitHub. For more detailed information, please visit https://www.apress.com/gp/services/ source-code. If disposing of this product, please recycle the paper Naga Santhosh Reddy Vootukuri Seattle, WA, USA
📄 Page 4
iii Table of Contents About the Author ���������������������������������������������������������������������������������������������������� vii About the Technical Reviewer ��������������������������������������������������������������������������������� ix Acknowledgments ��������������������������������������������������������������������������������������������������� xi Introduction ����������������������������������������������������������������������������������������������������������� xiii Chapter 1: Getting Started with GitHub Copilot �������������������������������������������������������� 1 Introduction to Vibe Coding ����������������������������������������������������������������������������������������������������������� 2 Introduction to GitHub Copilot ������������������������������������������������������������������������������������������������������� 3 GitHub Copilot Plans for Individuals and Enterprises �������������������������������������������������������������������� 3 Need for GitHub Copilot in Your IDE ����������������������������������������������������������������������������������������� 4 Installing GitHub Copilot As an Extension in Any IDE ��������������������������������������������������������������� 6 Installing GitHub Copilot in Visual Studio ��������������������������������������������������������������������������������� 7 Installing GitHub Copilot in Visual Studio Code ���������������������������������������������������������������������� 13 Q&A Session �������������������������������������������������������������������������������������������������������������������������� 15 Summary������������������������������������������������������������������������������������������������������������������������������������� 16 Chapter 2: Exploring GitHub Copilot Features �������������������������������������������������������� 17 GitHub Copilot Core Features ������������������������������������������������������������������������������������������������������ 18 Inline Code Suggestions �������������������������������������������������������������������������������������������������������� 18 Demonstration 1 �������������������������������������������������������������������������������������������������������������������� 19 Intelligent Code Autocompletions ������������������������������������������������������������������������������������������ 21 Context-Aware Suggestions �������������������������������������������������������������������������������������������������� 22 Demonstration 2 �������������������������������������������������������������������������������������������������������������������� 23 Accepting and Iterating on Suggestions �������������������������������������������������������������������������������� 24 Crafting Effective Prompts for GitHub Copilot ����������������������������������������������������������������������������� 26 Prompts via Comments ��������������������������������������������������������������������������������������������������������� 27
📄 Page 5
iv Demonstration 3 �������������������������������������������������������������������������������������������������������������������� 27 Leveraging Method Signatures and Method Names�������������������������������������������������������������� 28 Demonstration 4 �������������������������������������������������������������������������������������������������������������������� 28 Leveraging Partial Code As Prompts ������������������������������������������������������������������������������������� 29 Demonstration 5 �������������������������������������������������������������������������������������������������������������������� 29 Generating Code Documentation ������������������������������������������������������������������������������������������� 31 Demonstration 6 �������������������������������������������������������������������������������������������������������������������� 31 Ask GitHub Copilot ����������������������������������������������������������������������������������������������������������������� 32 Q&A Session �������������������������������������������������������������������������������������������������������������������������� 36 Summary������������������������������������������������������������������������������������������������������������������������������������� 37 Chapter 3: GitHub Copilot Chat in Developer Workflow ������������������������������������������ 39 GitHub Copilot Chat: Your AI Programming Companion ��������������������������������������������������������������� 40 Understanding GitHub Copilot Chat User Interface ���������������������������������������������������������������� 40 Ask Mode vs� Agent Mode in GitHub Copilot Chat ����������������������������������������������������������������� 47 Ask Mode Interactions ����������������������������������������������������������������������������������������������������������� 52 Demonstration 1 (Code Explanation) ������������������������������������������������������������������������������������� 52 Demonstration 2 (Debug Problematic Method) ��������������������������������������������������������������������� 55 Agent Mode Interactions ������������������������������������������������������������������������������������������������������� 59 Code Refactoring ������������������������������������������������������������������������������������������������������������������� 61 Demonstration 3 �������������������������������������������������������������������������������������������������������������������� 61 Unit Tests Generation ������������������������������������������������������������������������������������������������������������� 68 Demonstration 4 �������������������������������������������������������������������������������������������������������������������� 68 Code Reviews ������������������������������������������������������������������������������������������������������������������������ 74 Demonstration 5 �������������������������������������������������������������������������������������������������������������������� 74 Q&A Session �������������������������������������������������������������������������������������������������������������������������� 76 Summary������������������������������������������������������������������������������������������������������������������������������������� 77 Chapter 4: GitHub Copilot on the Web ��������������������������������������������������������������������� 79 GitHub Copilot Integration on Web Editor ������������������������������������������������������������������������������������ 80 Using Keyboard Shortcut ������������������������������������������������������������������������������������������������������� 80 URL Modification ������������������������������������������������������������������������������������������������������������������� 81 GitHub Codespaces���������������������������������������������������������������������������������������������������������������� 82 Table of ConTenTs
📄 Page 6
v Copilot Dashboard ����������������������������������������������������������������������������������������������������������������������� 87 Providing Context to GitHub Copilot ��������������������������������������������������������������������������������������� 90 Add Extensions from Marketplace ����������������������������������������������������������������������������������������� 91 Repository Analysis ��������������������������������������������������������������������������������������������������������������� 93 Demonstration 1 �������������������������������������������������������������������������������������������������������������������� 93 Intelligent Project Management with Copilot ������������������������������������������������������������������������ 94 Demonstration 2 �������������������������������������������������������������������������������������������������������������������� 95 Demonstration 3 �������������������������������������������������������������������������������������������������������������������� 97 Demonstration 4 �������������������������������������������������������������������������������������������������������������������� 98 Submitting Pull Requests ������������������������������������������������������������������������������������������������������ 99 Demonstration 5 ������������������������������������������������������������������������������������������������������������������ 100 Demonstration 6 ������������������������������������������������������������������������������������������������������������������ 103 Q&A Session ������������������������������������������������������������������������������������������������������������������������ 105 Summary����������������������������������������������������������������������������������������������������������������������������������� 106 Chapter 5: Exploring MCP and GitHub Copilot Coding Agent �������������������������������� 107 Introduction to Model Context Protocol (MCP) �������������������������������������������������������������������������� 108 MCP Architecture and Core Components ���������������������������������������������������������������������������������� 109 GitHub Official MCP Server ������������������������������������������������������������������������������������������������������� 112 GitHub MCP Server Capabilities ������������������������������������������������������������������������������������������������ 117 Demonstration 1 ������������������������������������������������������������������������������������������������������������������ 118 How to Build an MCP Server from Scratch ������������������������������������������������������������������������������� 120 Demonstration 2 ������������������������������������������������������������������������������������������������������������������ 121 Security Practices in Model Context Protocol (MCP) ����������������������������������������������������������������� 126 GitHub Copilot Coding Agent ����������������������������������������������������������������������������������������������������� 128 How Coding Agent Works ���������������������������������������������������������������������������������������������������� 129 Demonstration 3 ������������������������������������������������������������������������������������������������������������������ 129 Demonstration 4 ������������������������������������������������������������������������������������������������������������������ 135 Q&A Session ������������������������������������������������������������������������������������������������������������������������ 138 Summary����������������������������������������������������������������������������������������������������������������������������������� 139 Table of ConTenTs
📄 Page 7
vi Chapter 6: Exploring New Features from GitHub Copilot �������������������������������������� 141 GitHub Copilot CLI ��������������������������������������������������������������������������������������������������������������������� 141 New Models Available on GitHub Copilot ���������������������������������������������������������������������������������� 144 Auto Mode to Select Models ����������������������������������������������������������������������������������������������������� 145 GitHub Copilot Inside Debugging Mode ������������������������������������������������������������������������������������� 146 GitHub Copilot Modernization Experience ��������������������������������������������������������������������������������� 147 GitHub Spark for Creating End-to-End Solutions ���������������������������������������������������������������������� 148 Demonstration 1 ������������������������������������������������������������������������������������������������������������������ 149 Summary����������������������������������������������������������������������������������������������������������������������������������� 152 Index ��������������������������������������������������������������������������������������������������������������������� 153 Table of ConTenTs
📄 Page 8
vii About the Author Naga Santhosh Reddy Vootukuri is a Principal Software Engineering Manager at Microsoft, working within the Cloud Computing + AI (C+AI) organization. With over 18 years of experience spanning across three countries (India, China, and the United States), Naga has developed a rich and varied technical background. His expertise lies in Cloud Computing, Artificial Intelligence, distributed systems, and microservices. At Microsoft, Naga leads the Azure SQL Database team, focusing on optimizing SQL deployment processes to enhance the efficiency and scalability of services for millions of databases globally. He is responsible for the entire infrastructure of the Azure SQL deployment space and has been instrumental in the development of Master Data Services product. In addition to his professional roles, Naga is deeply involved in the tech community as a speaker, technical book reviewer for different publishers, and contributor to platforms like DZone and the Microsoft Tech Community. As a Senior IEEE member, Naga served as IEEE AI Summit 2024 Committee Chair in selecting some of the best lightning talks. He also delivered AI-related workshops and received an AI innovator award from Washington Senator Lisa Wellman. He is currently a Co-chair for selecting workshops for IEEE AI Summit 2025. He served as a judge for industry-wide AI/database hackathons, which further showcased his expertise and commitment to the advancement of technology. He also serves as an editorial board member for a highly reputed science journal (SCI), where he reviews research articles on Cloud Computing and AI. Naga also actively engages in nonprofit work for the Nuevo foundation, which creates content for inspiring kids to break into the STEM world. Nuevo foundation’s “Anyone Can Code” hackathon won the popular choice award in the recently conducted Microsoft 2025 Hackathon worldwide. He also mentors students and industry folks on ADPList.org and Codepath.org by conducting mock interviews and shares his experience to make a career in the tech industry. You can contact him on LinkedIn: https://www. linkedin.com/in/naga-santhosh-reddy-vootukuri-5a67a133/.
📄 Page 9
ix About the Technical Reviewer Kasam Shaikh is a prominent figure in India's artificial intelligence landscape, holding the distinction of being one of the country's first four Microsoft Most Valuable Professionals (MVPs) in AI. Currently serving as a Senior Architect, Kasam boasts an impressive track record as an author, having authored five best-selling books dedicated to Azure and AI technologies. Beyond his writing endeavors, Kasam is recognized as a Microsoft Certified Trainer (MCT) and influential tech YouTuber (@mekasamshaikh). He also leads the largest online Azure AI community, known as DearAzure | Azure INDIA, and is a globally renowned AI speaker. His commitment to knowledge sharing extends to contributions to Microsoft Learn, where he plays a pivotal role. Within the realm of AI, Kasam is a respected Subject Matter Expert (SME) in Generative AI for the Cloud, complementing his role as a Senior Cloud Architect. He actively promotes the adoption of No Code and Azure OpenAI solutions and possesses a strong foundation in Hybrid and Cross-Cloud practices. Kasam Shaikh's versatility and expertise make him an invaluable asset in the rapidly evolving landscape of technology, contributing significantly to the advancement of Azure and AI. In summary, Kasam Shaikh is a multifaceted professional who excels in both technical expertise and knowledge dissemination. His contributions span writing, training, community leadership, public speaking, and architecture, establishing him as a true luminary in the world of Azure and AI. Kasam was recently awarded as the top voice in AI by LinkedIn, making him the sole exclusive Indian professional acknowledged by both Microsoft and LinkedIn for his contributions to the world of Artificial Intelligence!
📄 Page 10
xi Acknowledgments I would like to thank my family for supporting me throughout this journey as it involved countless hours of work over the weekends, and they always encouraged me to pursue my dreams. Thanks to my parents (Swarnalatha Reddy and Thirupathi Reddy) and my sister (Jeevana Jyothi Reddy). Grateful to my wonderful wife Sandhya and much love to my kids (Sky Reddy and Rio Reddy). My team (SQL deployment) and my managers (Brian Chamberlain and Mohamed El Hassouni) at Microsoft encouraged and supported me when I told them about my book-writing journey. I also extend my deepest gratitude and thanks to the following: • Smriti and the Apress team: I sincerely thank each one of you for giving me wonderful opportunities to work with you and with Apress. I have been an active member of the Apress technical reviewing team, and after talking to Smriti, she encouraged and pushed to pitch in the idea to pursue my book-writing journey, and this is my second book with Apress after the Exploring Azure Container Apps book. I will continue to write more in the future and create high-quality books. • Shobana: Thanks for your support in making sure I complete my work on time and for the production support in creating Online ISBN links. It was great working with you, and I hope we collaborate more in the future. Lastly, I would like to thank all the people from the Visual Studio and GitHub Copilot community who purchased this book and are reading this page. I hope this book will play a key role in your learning journey of exploring GitHub Copilot that you will use as a key tool for converting your awesome ideas into production-ready applications.
📄 Page 11
xiii Introduction If you are reading this page, I welcome you to my new book which I thoroughly enjoyed writing, and this time it’s about Vibe coding with GitHub Copilot. I am excited that you’re reading it, and I hope you will find it useful. In this book, let’s explore the term Vibe coding and get started with GitHub Copilot and how it will make your life easier. It doesn’t matter if you are a developer or not, this book will unfold all the tips and tricks you need to know, which makes it easier to work with GitHub Copilot so that even a nondeveloper can also put their thoughts into production-ready code. Imagine this scenario, you’re working on an important project and trying to implement a complex algorithm at 2AM and been wrestling with it for hours. You know what exactly you want to code but translating your mental model to clean code feels like climbing Mount Everest. Does it sound familiar? How does it sound like having a coding partner who never gets tired and has memorized millions of code patterns and can understand what your goals are just by reading your comments? A partner who doesn’t judge your abilities and never gets frustrated when you ask loads of questions or change the requirements at the last minute, yet patiently answers and gives you helpful suggestions. This isn’t a science fiction novel – this is the current reality you are living in and the answer to it is GitHub Copilot, which is already revolutionizing the way you write code. As we explore GitHub Copilot (GHC) throughout this book, we will dive deeper into its capabilities, limitations, and best practices on how to integrate it into your existing development workflow. The goal isn’t to replace your skills as a developer but to allow you to work more efficiently, explore more possibilities, and ultimately enjoy the coding process. Gone are the days of peer programming; now we are in the world of Vibe coding, and this book will help in getting upto speed on how to utilize GitHub Copilot, which can save significant amounts of your time during coding. As always, it’s your responsibility to make sure to verify the AI-generated code before consuming it in the production environment to avoid any consequences. Throughout this book, we’ll dive deep into various features of GitHub Copilot, starting from setting up on your local environment and progressing to more advanced topics of MCP and GitHub coding agents. Each chapter provides a blend of theoretical
📄 Page 12
xiv knowledge and practical demonstrations, ensuring you not only understand the concepts but also know how to apply them in real-world scenarios. Let’s look at what each chapter has in store for you. Chapter Overviews • Chapter 1 – Getting Started with GitHub Copilot: This chapter lays the foundation by introducing the concept of “Vibe Coding” and GitHub Copilot as a revolutionary AI-powered development tool. We’ll explore GitHub Copilot’s architecture, various subscription plans, and the need for AI assistance in modern development workflows. You’ll learn step-by-step instructions to set up development environments for both Visual Studio 2022 and Visual Studio Code, including authentication setup and initial configuration. • Chapter 2 – Exploring GitHub Copilot Features: This chapter dives deep into GitHub Copilot’s core functionality within the IDE environment. We’ll explore inline code suggestions, intelligent auto- completions, and context-aware code generations. You’ll master the art of crafting effective prompts through comments, method signatures, and partial code snippets to generate meaningful AI code suggestions. We also emphasize best practices for accepting, rejecting, and iterating on AI-generated code suggestions. • Chapter 3 – GitHub Copilot Chat in Developer Workflow: This chapter transforms GitHub Copilot from a passive suggestion tool into an active coding companion through Conversational interfaces. We’ll explore the GitHub Copilot interactive chat user interface, including Ask mode for explanatory interactions and Agent mode for autonomous multistep tasks. This chapter also demonstrates real- world scenarios from debugging complex LINQ queries to refactoring codebases following SOLID principles. • Chapter 4 – GitHub Copilot on the Web: This chapter showcases GitHub Copilot’s powerful web-based capabilities directly through the GitHub.com user interface. You’ll learn to leverage the GitHub Copilot dashboard for repository analysis, intelligent project InTroduCTIon
📄 Page 13
xv management, and automated pull request generation. The chapter covers daily workflows about creating GitHub issues, managing pull requests, performing code reviews, and generating extensive documentation without leaving your web browser. • Chapter 5 – Exploring MCP and GitHub Copilot Coding Agent: This chapter introduces the revolutionary Model Context Protocol (MCP) and the need in using it along with creating a new MCP server using C# from scratch. We’ll explore GitHub MCP server and the usage of its toolsets in real-world scenarios. We’ll also cover GitHub Coding Agents with practical implementation. This chapter also covers security considerations when leveraging MCP. • Chapter 6 – Exploring New Features from GitHub Copilot: It’s hard to keep up with the pace of GitHub Copilot releases; however, in this chapter, we will quickly explore the recent new releases from GitHub Copilot including new GitHub Copilot CLI and also GitHub Spark in developing a production-ready application. We’ll end with details about how to build on top of this knowledge and resources to keep track of new feature releases from GitHub Copilot. By the end of this book, you’ll have a solid understanding of how to leverage GitHub Copilot within Visual Studio for your daily coding tasks. You will also appreciate the power of MCP and GitHub Coding agents, which will significantly improve your developer productivity by helping you with your mundane tasks. This knowledge will help you in confidently vibe coding with GitHub Copilot to convert your awesome ideas into production-ready applications within no time. I am sure you will enjoy this pocket guide as much as I did writing it. I hope to see you with another book in the future. Until then, happy Vibe coding!! InTroduCTIon
📄 Page 14
1 © Naga Santhosh Reddy Vootukuri 2025 N. S. Reddy Vootukuri, Vibe Coding with GitHub Copilot, https://doi.org/10.1007/979-8-8688-2196-7_1 CHAPTER 1 Getting Started with GitHub Copilot The rate at which software development is going through a transformation is unbelievable thanks to Artificial Intelligence, which has emerged as a transformative force in how we approach coding tasks. GitHub Copilot (GHC) stands as a revolutionary tool that changes the way developers write code today, and this book is all about giving you enough tips and tricks to confidently include GitHub Copilot (GHC) in your arsenal. Regardless of your development background, this book is tailored to offer you foundational knowledge and help you with onboarding to GitHub Copilot. Buckle up and enjoy reading it! The major difference between GitHub Copilot (GHC) from other traditional code completion tools is its ability to understand the context and generate meaningful and relevant code suggestions. Copilot can generate entire functions, classes, or even complete algorithms based on comments from the user. It’s like doing peer programming except that instead of working with a human you are dealing with large language models (LLM). In this chapter, we will embark on a journey that will transform how you think about coding. We will explore what makes GHC powerful and how to set it up to start coding with AI assistance in both Visual Studio and Visual Studio Code. By the end of this chapter, you will have a fully configured development environment and foundational knowledge to start leveraging AI in your daily coding activities. The learning objectives for this chapter include the following: • Introduction to Vibe Coding • Introduction to GitHub Copilot and its offerings • Need for GitHub Copilot in your IDE (VS/VSC) • Pricing models and subscription options • Step by step installation guide to set up GitHub Copilot
📄 Page 15
2 Note If you haven’t read the introduction page, I highly advise you to read it to understand the intent of this book. Introduction to Vibe Coding Imagine this scenario: you are working on a complex algorithm middle of the night and stuck with an issue where you are the only one still awake in your time zone; the rest of the team logged off hours ago. In your head, you can see how this should work; however, translating that into a clean working code feels like a challenge. You could have taken your peers’ help (known as Pair Programming), but now you are left with something called “Vibe Coding.” Vibe Coding is an AI-assisted way of building software where a developer describes their intent in plain English and guides AI to generate and refine working code. The term “Vibe Coding” was casually introduced by Andrej Karpathy, former researcher at OpenAI, on a post on X (formerly Twitter); refer to Figure 1-1 for the full post. Figure 1-1. Andrej Karpathy’s post talking about Vibe Coding ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
📄 Page 16
3 This post went viral and got wide attention within the industry. Vibe Coding is all about finding the perfect harmony between you and your AI assistant to create reliable software in no time. POINT TO NOTE From Wikipedia, Vibe coding is an artificial intelligence–assisted software development style popularized by Andrej karpathy in February 2025. The term was then listed in Merriam- Webster Dictionary the following month as a “slang & trending” term. Introduction to GitHub Copilot GitHub Copilot is an AI-powered tool that helps developers with coding best practices and provides auto-completion recommendations to improve overall code quality. It can produce code snippets based on the provided query. It works with a variety of programming languages and integrates well with both Visual Studio Code and Visual Studio IDE. As a developer, we can leverage Copilot to write repetitive tasks, so that you can utilize your time in implementing core algorithms and improving your development cycles. Copilot also has a chat feature where you can ask questions in your code and ask it to do mundane tasks like “Adding XML documentation to classes/methods, explaining the selected code, providing suggestions on writing tests, etc.” GitHub Copilot is launched as a technical preview in 2021 and made generally available in 2022. It’s a collaboration between GitHub and OpenAI. Copilot is powered by OpenAI Codex model which is a descendant of GPT (Generative Pre-Trained Transformer) models, which were trained on billions of lines of code from public GitHub repositories. GitHub Copilot Plans for Individuals and Enterprises GitHub offers several plans; depending on your needs, you can either choose individual plan or as part of an organization. Refer to Table 1-1 for more details. ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
📄 Page 17
4 Table 1-1. Comparison of various Copilot Plans Plan Who it’s for Price Core features Copilot Free Individuals evaluating Copilot free real-time code suggestions in supported Ides; basic chat quota Copilot Pro Individual developers $10/month or $100/year unlimited code completions; unlimited chat with included models; inline chat; Ide integrations (Vs/ Vs Code/others) Copilot Pro+ power users/ creators $39/month or $390/year everything in pro; priority/early access to advanced capabilities Copilot Business Teams and organizations $19/user/ month everything in pro per seat; org policy controls; centralized billing; privacy-first defaults Copilot Enterprise large/regulated organizations $39/user/ month everything in business plus enterprise-grade identity, audit, analytics/telemetry Need for GitHub Copilot in Your IDE Within the field of artificial intelligence (AI), GenAI is a subset of deep learning methods that can work with both structured and unstructured data. Figure 1-2 presents the different layers of artificial intelligence. ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
📄 Page 18
5 Figure 1-2. Artificial intelligence landscape It is notably generative AI that is rapidly transforming the business world by fundamentally reshaping how businesses automate tasks, enhance customer interactions, optimize operations, and drive innovation. Companies are embracing AI solutions to have a competitive edge, streamline workflows, and unlock new business opportunities. As AI becomes more woven into society, its economic impact will be significant, and organizations are already starting to understand its full potential. In the context of software development, this AI transformation is even more impactful. Imagine on a typical day, you are constantly juggling syntax between different programming languages, making sure code doesn’t have any syntax issues, writing API documentation, and switching between multiple tools and browser tabs. All this is exhausting and puts your focus away from what really matters, which is solving interesting problems and designing great software. GitHub Copilot changes all of this by bringing intelligent assistant directly into your code editor. It turns your normal IDE into a smart coding companion that understands the context and helps you with meaningful suggestions. ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
📄 Page 19
6 The integration of GitHub Copilot into your IDE makes a transition from reactive to proactive development assistance. What does it mean? Instead of waiting for you to get stuck, GitHub Copilot watches what you are doing and anticipates what you need next. For example, when you write a comment describing the function you want to create, Copilot will immediately suggest complete implementations that match your project style and structure. The result is what many developers call as “Vibe Coding” – that smooth experience where your ideas are converted into working code without getting lost in the syntactical details and implementation. Installing GitHub Copilot As an Extension in Any IDE While the initial version of GitHub Copilot was specific to Visual studio IDE, Microsoft has taken a significant step to its commitment to open source development by announcing that GitHub Copilot chat extension is now open source under the MIT license. This will increase transparency and foster community-wide contributions. Copilot is no longer just a tool; it’s a dynamic and collaborative entity that learns and improves with community involvement. GitHub Copilot can now be run as an extension in multiple IDEs like a. JetBrains IDEs like PyCharm, WebStorm, Rider, etc. b. Visual Studio c. Visual Studio Code d. Sublime Text (via extensions) e. Vim (with plugin support) f. Emacs (with copilot packages) g. GitHub Codespaces POINT TO NOTE Throughout this book, we will use Visual Studio/Visual Studio Code as the main IDE when explaining about various functions of GitHub Copilot. However, you can get similar experience when working with other IDEs. ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
📄 Page 20
7 Installing GitHub Copilot in Visual Studio Download and install Visual Studio 2022 IDE with version 17.6 or later by navigating to the following page: https://visualstudio.microsoft.com/downloads/ Launch visual studio Installer, and on the installation page, select any workload based on your needs. Select GitHub Copilot from the list of Optional components as shown in Figure 1-3. Click next to follow prompts to install Visual studio along with GitHub Copilot extension. This contains both GitHub Copilot and GitHub Copilot Chat when installed. Figure 1-3. Visual studio Installer with GitHub Copilot selected in the optional components It’s worth mentioning that these two tools serve different purposes; GitHub Copilot focuses on assisting with code suggestions within the IDE, while GitHub Copilot Chat offers a conversational interface to help with coding tasks and provide explanations. Now that you Installed Visual studio with an extension, other prerequisites are a. GitHub Account: Make sure to have a valid GitHub Account. Navigate to the URL https://github.com/ to create an account before getting started. ChapTer 1 GeTTInG sTarTed wITh GIThub CopIloT
The above is a preview of the first 20 pages. Register to read the complete e-book.

💝 Support Author

0.00
Total Amount (¥)
0
Donation Count

Login to support the author

Login Now

Recommended for You

Loading recommended books...
Failed to load, please try again later
Back to List