![]() ![]() By looking at your comment and comparing it to the code, Copilot will not only recognize errors and provide context on what went wrong, but it will also propose fixes that will address the issues,” said Rodriguez. “You can ask Copilot to propose a fix for the bugs in your code. With Copilot Chat, they can access immediate and context-specific support directly in their Editor/IDE. GitHub says that previously, developers lacked a straightforward method to inquire or obtain additional context. That context allows it to provide guidance specifically tailored to the user rather than offering general tips that may not apply to that scenario,” Rodriguez told VentureBeat. “Copilot Chat is contextually aware of what a developer is trying to do at any given time. The company asserts that, unlike generic generative AI chat assistants, Copilot Chat demonstrates contextual awareness, integrating concepts that are effective for general-purpose AI and tailoring them to developers’ specific environments. It can comprehend the code a developer has written and interpret the error messages that appear. GitHub said that Copilot Chat surpasses the functionality of a typical chat window. “So we’ve benefited from being first to market, defining how AI can best improve developers’ workflow, and refining GitHub Copilot based on feedback from such a broad user base.” Providing developer assistance through contextual understanding “Most AI developer tools are either in the experimental stages or have yet to be proven at scale, whereas Copilot Chat builds on GitHub Copilot, which over 1 million developers already trust,” said GitHub’s Rodriguez. A good start, though we found it less useful with business-specific code.GitHub claims the new offering will democratize software development, improving developer teams’ productivity and satisfaction. Presented with a Bubble Sort routine in C, Explain – a function of Copilot that aims to describe what code does in plain language – delivered a line by line description such as “the sixth line of code is to declare the variable n as an integer and assign it to 0,” and when asked “Code does following” stated in a few lines that it reads numbers into an array and sorts using bubble sort. “From my quick tests it works really well,” said one developer, and another added that “the language translation tool is awesome.” That said, developers must be realistic about what AI can do and also understand the risks of generated code that may have subtle bugs. When Copilot was launched in June 2021, Github said that “Copilot works with a broad set of frameworks and languages, but this technical preview works especially well for Python, JavaScript, TypeScript, Ruby and Go.”Įarly reaction to Copilot Labs is positive. The new Visual Studio extension also explicitly supports. ![]() Visual Studio is the second most popular IDE after VS Code according to the most recent Stack Overflow survey. Copilot was already available for VS Code, Neovim, and JetBrains IntelliJ-based IDEs. Last week the company also announced the availability of Copilot for Visual Studio 2022. Translating open source code from C++ to JavaScript with Copilot Porting code is another frequent requirement, as developers convert projects to run in different environments or to take advantage of modern programming techniques. Copilot is happy to have a go at porting C code to Rust, for example. A dropdown in the extension panel offers an impressive list of around 60 languages, from ABAP (Advanced Business Application Programming, a SAP language) to yaml, and including most languages in common use, though Pascal is curiously absent. The second feature, “translate this code”, is for porting code to a different programming language. This is a common problem faced by newcomers to a project, or by developers who need to get up to speed quickly with legacy code that requires maintenance. The first is called “explain this code” and aims to provide a plain language description of what a chunk of code does, with potential for speeding the process of understanding an unfamiliar codebase. ![]() Copilot Labs, currently only available as Visual Studio Code extension separate from (but dependent on) the main Copilot extension, adds two new features. GitHub has introduced improvements to its Copilot AI coding service, though it remains in invite-only technical preview. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |