OneDrive.com not only lets you edit various code text files in the browser but also provides IDE type features like syntax highlighting, completion suggestions. Though OneDrive users make use of Office Online to create, edit Office documents but many are not aware of code editing feature.
OneDrive users have been using Office Online in OneDrive . They not only store Office documents but also make use of Office Online for creating, editing , collaborating Office documents in the web browser.
There’s also an option to create ‘Plain Text document’,as many people still like to work with Plain text documents. For a quick to-do lists, jotting down notes, grocery list, for such things, notepad text file is the best. So a normal user can make use of it. But here there’s something for developers too. One can do much more using Plain text documents here. When we save it or rename this text document one can notice kind of option it offers to save the file.
Here’s how the OneDrive.com Text Editor looks like. Its just plain Text file is being shown here:
Here’s how a sample .CSS code file looks like in OneDrive.com text editor in browser:
As one can see, it provides Syntax highlighting with Line numbers. One can edit and share the file too.
As you start editing, it provides auto-complete suggestions. Press Ctrl-Space, like you do in Visual Studio to get the list of autocomplete option for multiple matches or press Tab.
For Find and replace box to open, Press Ctrl+F. The matches are also indicated on the scrollbar for its position.
You also have options in Find like the Match Case, Match Whole Word and even Use Regular Expression option and some others.
Clicking on the small arrow besides the Find box , opens up Replace. This also provides options of Replace and Replace All.
If you are using hexcode for colors in the code, the editor shows the equivalent color on hovering over it.
And if you want to quickly show the code to someone online, you can share the file and can also provide edit options so that he can also change code as per his liking. And now when you open this file, OneDrive will help prevent conflicting changes and will show the changes and provide the option to compare changes before Saving the file.
If you want to compare changes before saving, clicking on Compare Changes will provide side-by-side comparison like a kind of ‘diff’ .
So using such cool features in OneDrive.com text editor, one can edit & share code files on the go doing some light-weight edits. But one should keep in mind that its not an IDE , not a replacement for Visual Studio. Also some languages like CSS have more IntelliSense built in as compared to other languages like .sql which don’t yet have syntax highlighting or completion suggestions. Syntax and editing only available for supported browsers. So if you haven’t yet tried out this feature, go to OneDrive.com and give it a try!