The novel-writing analogy is a bit off, because the novel elements you mention are higher level than a single API call would be. They're more like a subroutine or algorithm level. IDEs don't really do that.
An IDE's functionality is more like a screenwriting app's formatting of a script as the writer writes.
An IDE's functionality is more like a screenwriting app's formatting of a script as the writer writes.