When inline code completion works, it feels like the editor is reading your thoughts before your fingers leave the home row. When it lags, it turns into pure friction: phantom gray text flashing a second too late, interrupting your cadence, or forcing you to stop typing just to wait for an incomplete suggestion. At 365Finds, we consider ghost text with high latency worse than having no assistant at all—because delayed suggestions demand visual attention right when you have already committed to a different syntax path.
Sub-second responsiveness is the entire premise of GitHub Copilot inline suggestions. If latency creeps past 400 to 600 milliseconds, developer flow collapses. Fixing this requires diagnosing where the pipeline stalls. The delay rarely comes down to a simple "slow internet connection." Instead, it is usually a bottleneck in one of three layers: client-side context construction, local IDE rendering contention, or corporate network interception.
Step 1: Pinpoint the Chokepoint Before Changing Settings
Before modifying configurations, developers need to verify whether the delay originates in the cloud, on the network wire, or inside the editor process.
1. Rule Out Backend Service Degradation
First, verify GitHub's service health. GitHub Copilot relies on dedicated inference endpoints. Check GitHub Status to ensure there is no ongoing latency incident or partial outage on Copilot completion services. If the backend is degraded, local tuning will not help.
2. Inspect Extension Diagnostic Logs
Both Visual Studio Code and JetBrains IDEs expose the underlying HTTP transactions and payload generation times.
In VS Code:
- Open the Command Palette (
Ctrl+Shift+Pon Windows/Linux orCmd+Shift+Pon macOS) and runDeveloper: Set Log Level.... - Select
GitHub Copilotand set the level toTrace. - Open the Output panel (
View > Output) and chooseGitHub Copilotfrom the channel dropdown. - Watch the timestamps when typing. Look for round-trip times (RTT) on completion requests. If requests take 1,200ms or log errors such as
read ETIMEDOUTorECONNRESET, the issue sits on the network or proxy layer. If network responses return in 200ms but ghost text takes another 800ms to show, the IDE process is struggling to render. - Run
Developer: Chat Diagnosticsfrom the Command Palette to run an automated connectivity check againstapi.github.com,api.githubcopilot.com, andcopilot-proxy.githubusercontent.com.
In JetBrains IDEs (IntelliJ IDEA, PyCharm, WebStorm, etc.):
- Navigate to
Help > Diagnostic Tools > Debug Log Settings.... - Add
#com.github.copiloton a new line to enable verbose logging. - Open the log file via
Help > Show Log in Files / Explorer / Finderand searchidea.logforgithub-copilot. Inspect socket connection timeouts, TLS handshake delays, or thread starvation warnings.
Step 2: Fix IDE-Level Latency and Context Bloat
GitHub Copilot does not merely look at the active line. It builds a prompt by scanning the current file, cursor position, and neighboring open tabs ("neighboring tabs" heuristic) to provide context-aware recommendations. If your IDE workspace is overloaded, local prompt assembly becomes a major source of delay.
1. Introduce Keystroke Debounce (minShowDelay in VS Code)
By default, VS Code triggers inline suggestion requests almost immediately on every keystroke. For fast typists, this floods the language server and network socket with rapid cancel-and-restart requests. 365Finds strongly recommends introducing a deliberate micro-delay:
- Open VS Code Settings (
Ctrl+,orCmd+,). - Search for
editor.inlineSuggest.minShowDelay. - Set the value between
100and250(milliseconds).
This short pause gives your keystrokes a brief buffer. If you pause typing, Copilot triggers cleanly; if you are typing continuously at speed, the editor refrains from spamming cancellation requests that bottleneck CPU and socket queues.
2. Prune Open Tabs and Exclude Massive Artifacts
If you leave 40 or 50 editor tabs open across a large repository, Copilot attempts to index snippets from those files to build prompt context. When tabs include minified JavaScript bundles, massive SQL dumps, machine-generated GraphQL schemas, or JSON fixtures exceeding several megabytes, context extraction stalls the local Copilot worker process.
- Close unneeded editor tabs. Keep open only the files directly relevant to your current implementation task.
- In VS Code, exclude large build directories and auto-generated paths from workspace indexing via
files.excludeandsearch.excludeinsettings.json. - For projects mounted across network shares or Windows Subsystem for Linux (WSL), ensure the project directory resides on the native Linux filesystem (
/home/...) rather than the cross-mounted Windows drive (/mnt/c/...). Cross-OS filesystem reads add significant I/O latency to background tab reads.
3. Eliminate Competing Inline Providers
Running multiple AI completion engines simultaneously is one of the most common causes of ghost-text stutter.
- In JetBrains: JetBrains IDEs bundle an on-device Full Line Code Completion engine alongside the third-party GitHub Copilot plugin. When both attempt to draw gray ghost text at the same cursor position, UI thread lockups and visual flickering occur. Open
Settings > Editor > General > Code Completion > Inline Completionand ensure you disable overlapping full-line models or uncheck conflicting providers. - In VS Code: If you run extensions like Tabnine, Codeium, Supermaven, or local LLM assistants alongside GitHub Copilot, disable the competing extensions. Ghost text hooks in the Monaco editor architecture do not gracefully arbitrate multiple asynchronous completion providers firing on the same keystroke.
4. Increase JetBrains JVM Heap Size
The GitHub Copilot JetBrains plugin runs inside the IDE JVM process. If your IDE is running close to its memory ceiling, Java garbage collection (GC) pauses will freeze background thread execution, causing inline suggestions to arrive multiple seconds late.
- Go to
Help > Change Memory Settings. - Increase the maximum heap size (
-Xmx) from the default (typically 2048 MB) to4096 MBor higher, provided your machine has sufficient RAM.
Step 3: Resolve Network, VPN, and Corporate Proxy Throttling
When logs indicate network timeouts (read ETIMEDOUT), dropped connections (ECONNRESET), or slow TCP handshakes, the cause is almost invariably enterprise security middleware.
1. Address SSL Inspection and Custom Root Certificates
Many corporate environments deploy security agents (such as Zscaler, Netskope, or Cisco Umbrella) that perform deep packet inspection by decrypting and re-encrypting TLS traffic with an internal root certificate. If GitHub Copilot cannot validate that certificate against its bundled certificate store:
- In VS Code, Copilot relies on the OS certificate store, but strict SSL validation may drop intercept packets. Check if your corporate proxy settings are configured under
http.proxyin settings. - In JetBrains, go to
Settings > Tools > Server Certificatesand verify thatAccept non-trusted certificates automaticallyis evaluated for diagnostic testing, or manually import your organization's internal CA root certificate.
2. Allowlist Essential Endpoints
Ensure your organization's firewall or network proxy does not throttle or inspect traffic to Copilot endpoints. Submit an allowlist request for:
https://copilot-proxy.githubusercontent.comhttps://api.githubcopilot.comhttps://api.github.comhttps://default.exp-tas.com
Traffic to copilot-proxy.githubusercontent.com handles the streaming tokens for inline suggestions; any intermediate proxy that buffers HTTP/2 responses instead of streaming them immediately will destroy inline suggestion responsiveness.
3. Diagnose IPv6 and DNS Stalls
In certain operating environments, local DNS resolvers prioritize IPv6 lookups for GitHub endpoints that time out before falling back to IPv4. If you notice a consistent 3 to 5 second hesitation before Copilot starts streaming completions, test your connection over a dedicated IPv4 route or temporarily disable IPv6 on the network adapter.
365Finds Take and Actionable Summary
At 365Finds, our testing across development setups indicates that jumping directly to reinstalling the IDE or assuming GitHub backend slowness is usually wasted effort. Real-world latency problems with GitHub Copilot almost always stem from two configuration mistakes: leaving fifty tabs open in a monorepo while Copilot tries to read them all, and running multiple inline completion extensions that fight over the editor cursor.
To regain snappy, instant inline completions, apply this specific sequence:
- Verify GitHub Status to confirm the service is healthy.
- In VS Code, add
"editor.inlineSuggest.minShowDelay": 150to debounce fast typing. - In JetBrains, disable built-in Full Line Completion and allocate at least 4096 MB of heap memory.
- Close inactive editor tabs to keep Copilot's prompt context lean.
- If logs show
ETIMEDOUT, coordinate with your network administrators to ensurecopilot-proxy.githubusercontent.combypasses deep packet inspection and streams directly without proxy buffering.