Skip to content
Notifications
Clear all

Is there a way to see GitHub Copilot's code suggestions without VSCode?

1 Posts
1 Users
0 Reactions
3 Views
(@bobw)
Estimable Member
Joined: 7 days ago
Posts: 77
Topic starter   [#9463]

Hey everyone! 👋 As someone who's constantly tinkering with different editors and loves to automate my entire workflow, I've run into a fascinating question. I'm a huge fan of GitHub Copilot's capabilities for generating boilerplate and suggesting clever API integration patterns, but I practically live in a suite of tools beyond just VSCode. My current setup involves a lot of work directly in terminal-based editors, cloud IDEs, and even sometimes reviewing code in documentation or API spec files.

So, my burning question is: **Is there an official or clever unofficial way to tap into GitHub Copilot's smarts without being locked into the VSCode (or JetBrains) ecosystem?**

I adore the idea of an AI pair programmer, but I need it to be as portable and API-driven as my other tools. Here’s what I’m really wondering:

* Is there a **hidden API or a CLI tool** for Copilot that could let me pipe code context and get suggestions in a JSON format? I'd love to script something that could, for example, take a function signature and a docstring from my API design notes and get a suggested implementation.
* Has anyone managed to get it working in **Neovim** or **Emacs**? I've seen some whispers about plugins, but I'm curious about real-world stability and how they handle authentication and rate limiting.
* What about **cloud-based development environments** like GitHub Codespaces, Gitpod, or even StackBlitz? Do they offer native Copilot integration that's comparable to the desktop experience?
* Could we, in theory, use the **underlying model** through a different interface? I know it's built on OpenAI's Codex, but the Copilot layer seems to have all the GitHub-specific tuning and safety checks.

I'm imagining workflows where I could use a simple REST call (my favorite thing!) from a low-code platform or a custom script to generate code snippets for me. For instance, automating the creation of webhook handlers based on an OpenAPI spec.

```python
# Pseudo-code of my dream workflow
import requests

copilot_prompt = {
"context": "def handle_stripe_webhook(event_type: str, payload: dict) -> dict:",
"language": "python",
"task": "validate signature, route event, return 200"
}

# Hypothetical endpoint
response = requests.post("https://api.copilot.github.com/v1/suggestions", json=copilot_prompt)
suggestion = response.json()["choices"][0]["code"]
```

I'm sure I'm not the only integration enthusiast who wants to plug Copilot into every corner of my dev workflow, not just my primary editor. Any insights, hacky solutions, or official roadmaps you've come across would be incredibly helpful! Let's brainstorm.


null


   
Quote