I'm aware that I can export and import a Views code. I'm wondering if there is a way to edit and add relationships or contextual filters of a current view within the code instead of the UI.
The reason is sometimes its just easier to add the code rather than drilling down to the relationship within the UI.
If not, I guess the workaround would be to export, then change, then import and overwrite. Not sure how this will effect the site if the views were created from a module installation.
hook_views_default_views), changes made to the view in code will reflect as you change the code.