In-IDE Code Generation from Natural Language: Promise and Challenges

A small trial with 31 programmers found a median correctness score of 7 out of 10 per task with a code generation plugin against 6 without it, a gap the authors could not tell apart from chance.

Xu et al., ACM Trans. Softw. Eng. Methodol., September 22, 2021. AI used: NL2Code generation and retrieval plugin for PyCharm

Verdict

Verdict: Medium

What Medium means

Model vintage

NL2Code generation and retrieval plugin for PyCharm

Short, self-paced Python tasks done remotely by a mixed pool of engineers and students, matched to their stated expertise.

So what for leaders

  1. Do not use this study to judge today's coding assistants; it tested a 2021 prototype.

Use this

Copies the finding, how far it generalizes and a link to this scorecard.

Cite this studyRead the paperDownload chart as SVG
  1. If you run your own trial, randomize tasks with the tool on and off for each person and count everyone you enrolled, including those who never used the tool.

Keep track of this study

Watch it and I'll email you if it's corrected, re-run or retracted, or a new study on the same kind of work is published. Nothing else. Save it to a pack for your next deck. Alerts aren't switched on yet. Your watches are kept, and the first email goes out when they are.

Just want the newsletter? Subscribe on Substack

The receipts

Setting
Online panel
Design
Randomized trial
Publication
Journal article
Model vintage
NL2Code generation and retrieval plugin for PyCharm

How far it generalizes

Short, self-paced Python tasks done remotely by a mixed pool of engineers and students, matched to their stated expertise. It does not reach novices, large real codebases or current tools.

Levels, by arm and outcome

Levels as reported, not effects of AI

  • Study participants using the NL2Code pluginTask correctness score per task, with the plugin7 score out of 10
  • Study participants not using the NL2Code pluginTask correctness score per task, without the plugin6 score out of 10
Show as table
Levels, by arm and outcome
ArmOutcomeEstimateIntervalUnitBetter whenSource
Study participants using the NL2Code pluginTask correctness score per task, with the plugin7No interval reportedScore out of 10HigherSection 8, p. 27
Study participants not using the NL2Code pluginTask correctness score per task, without the plugin6No interval reportedScore out of 10HigherSection 8, p. 27
Share of participants reporting an at least somewhat positive experience using the plugin, by arm

Levels as reported, not effects of AI

  • Study participants using the NL2Code plugin48.4%
Show as table
Share of participants reporting an at least somewhat positive experience using the plugin, by arm
ArmOutcomeEstimateIntervalUnitBetter whenSource
Study participants using the NL2Code pluginShare of participants reporting an at least somewhat positive experience using the plugin48.4No interval reportedPercent (%)HigherSection 7, Results, p. 24

Design

Design
Randomized trial
Setting
Online panel
How I found it
Mined from Maier et al. 2026 (scout batch 6, round 2), 2026-11-15

Who it applies to

Functions
Software engineering
Roles
Developers, students, and freelancers
Seniority
Mixed

Conflicts

  • Potential conflict, maker of the tool studied. The authors designed and built the NL2Code plugin for PyCharm whose use the study evaluates. Read the source

Critique

What the study did well. Each programmer did tasks with the plugin on and off in random order, so every person served as their own comparison, and the analysis accounted for differences between people and between tasks. The authors reported a null on their own tool.

Hole 1: potential conflict. The authors designed and built the NL2Code plugin for PyCharm whose use the study evaluates.

Hole 2: too small to rule much out. With 31 people and wide variation between them, the trial cannot exclude a useful effect or a harmful one.

Hole 3: non-users dropped. Eight participants who never used the plugin were filtered out after the fact, which can tilt the on versus off comparison. No preregistration is reported.

Hole 4: a research prototype. The plugin generated and retrieved code with 2021 research methods, long before today's coding assistants.

Business significance

The gap is one point on a ten-point correctness score, 7 against 6 (Section 8, p. 27), and the paper reports no significant difference in correctness or time. Asked about the experience, 48.4% (15 of 31) said it was at least somewhat positive (Section 7, Results, p. 24).

The paper measures no cost or hours saved, and the tool tested is not one a team could buy today.

Does it still hold?

Not re-run. The plugin is a 2021 research prototype from the era before large language model coding assistants, many generations behind today's tools. Modern assistants may do better on the same tasks. That is untested.

Cite this

The paper

Plain

Xu, Frank F., Vasilescu, Bogdan, and Neubig, Graham (2021). In-IDE Code Generation from Natural Language: Promise and Challenges. ACM Trans. Softw. Eng. Methodol. https://doi.org/10.1145/3487569

APA

Xu, Frank F., Vasilescu, Bogdan, & Neubig, Graham. (2021). In-IDE Code Generation from Natural Language: Promise and Challenges. ACM Trans. Softw. Eng. Methodol. https://doi.org/10.1145/3487569

BibTeX

@article{xu-in-ide-code-generation-2022,
  author = {Xu, Frank F. and Vasilescu, Bogdan and Neubig, Graham},
  title = {In-IDE Code Generation from Natural Language: Promise and Challenges},
  journal = {ACM Trans. Softw. Eng. Methodol.},
  year = {2021},
  doi = {10.1145/3487569},
}

My scorecard

Plain

New Baseline (2026). A small trial with 31 programmers found a median correctness score of 7 out of 10 per task with a code generation plugin against 6 without it, a gap the authors could not tell apart from chance. Verdict: Medium; Short, self-paced Python tasks done remotely by a mixed pool of engineers and students, matched to their stated expertise. It does not reach novices, large real codebases or current tools. https://www.newbaseline.ai/studies/xu-in-ide-code-generation-2022 Accessed December 5, 2026.

APA

New Baseline. (2026). A small trial with 31 programmers found a median correctness score of 7 out of 10 per task with a code generation plugin against 6 without it, a gap the authors could not tell apart from chance. Retrieved December 5, 2026, from https://www.newbaseline.ai/studies/xu-in-ide-code-generation-2022

BibTeX

@misc{xu-in-ide-code-generation-2022-newbaseline,
  author = {{New Baseline}},
  title = {A small trial with 31 programmers found a median correctness score of 7 out of 10 per task with a code generation plugin against 6 without it, a gap the authors could not tell apart from chance.},
  year = {2026},
  howpublished = {\url{https://www.newbaseline.ai/studies/xu-in-ide-code-generation-2022}},
  note = {Verdict: Medium; Short, self-paced Python tasks done remotely by a mixed pool of engineers and students, matched to their stated expertise. It does not reach novices, large real codebases or current tools. Accessed December 5, 2026.},
}

A result

Cite a result
  • Study participants using the NL2Code plugin (Task correctness score per task, with the plugin): 7 score out of 10, no interval reported, Section 8, p. 27. In Xu et al. 2021.

  • Study participants not using the NL2Code plugin (Task correctness score per task, without the plugin): 6 score out of 10, no interval reported, Section 8, p. 27. In Xu et al. 2021.

  • Study participants using the NL2Code plugin (Share of participants reporting an at least somewhat positive experience using the plugin): 48.4%, no interval reported, Section 7, Results, p. 24. In Xu et al. 2021.