1. A method, comprising: performing, by one or more computing devices: receiving, through an interface of a code editor, an input selecting a code feature for a location within code displayed within an editing window of the code editor; obtaining, through an application programming interface to a documentation package for the selected code feature, at least one code sample for the selected code feature and corresponding documentation for the selected code feature from the documentation package, the corresponding documentation containing explanatory information for the selected code feature; inserting, at the location within the code displayed within the editing window of the code editor, the at least one code sample into the editing window, the at least one code sample persistently associated with the documentation package for displaying the corresponding documentation within context of the at least one code sample in the code editor; receiving, through the interface of the code editor, an input indicating a change to a code element of the at least one code sample; and synchronizing, within the documentation package, at least one reference corresponding to the code element by modifying the at least one reference within the documentation package to be consistent with the change to the code element.