Visual Studio - Change default "View Code" editor while keeping default editor - visual-studio

I have a project in Visual Studio 2017 (Professional) in which I'm editing an SSRS .rdlc file.
I have it such that the default editor for the file is, as I'd want it to be, the Report Designer.
However, I'm often editing the source XML for that file. So, I'm often right-clicking the file and selecting View Code. When I do that, it opens the file up in a standard Text editor rather than the XML editor.
What I'd like to have happen is:
Have Report Designer be the standard default editor.
Have XML Editor be the default editor for when I want to view code.
Is there any way to set that up to be the case (just change the default View Code editor)?

Right click on your report and open with it will show you something like this
and you can choose what you want

Related

Cant save BIML file in Visual Studio

I have just started trying to use BIML to generate my SSIS packages. Im currently using VIsual studio 2015 to do everything.
When I add a new BIML file to the project it appears in the Solution explore and I can open the file and edit it. But when I save and close and reopen none of the changes where saved. Is there a setting that i need to change in Visual Studio? Currently I have to edit this file through the use of Notepad++ or something similar.
Visual Studio ScreenShot
As a work around to this issue, you could right click on the file you wish to edit and choose XML (Text) Editor.
Sadly you'll loose intellisence for the C# code
If you open a file twice, once in the BIML editor and once in the XML editor then you can view side by side making your changes in XML but viewing nice formatting in BIML...

wanna have a designer for a REPX file - VS13/DevExpress

I want to open a repx file with a designer.
(but now, I only see the code behind)
I have installed Visual Studio 2013 and DevExpress.
I just want to add 3 paramters to a printer lable.
The existing file was made with XtraReport - maybe that helps.
Thx.
First, open or create a blank XtraReport file in design mode in Visual Studio. Then, click on the Tasks tag on the upper-left corner of the report design surface. From the pop-up menu, click on "Open/Import" and select a .repx file.

Visual Studio Sourcesafe 6.0 *.js filetype change default editor

I'm using Microsoft Visual Studio Sourcesafe 6.0.
When edit *.js(JavaScript) File Type, the default text editor is notepad.exe, but I want to use another text editor.
How to change *.js File Type default text editor?
By default, you can use notepad to view JavaScript source code. To change it, follow these steps:
Quit Internet Explorer (if it is running).
Double-click My Computer.
On the View menu, click Options (or Folder Options).
Click the File Types tab. In the Registered File Types box, find JavaScript, click it, and then click Edit. Then select your editor.
Note: If it is not works, you may need to type a space and %1 at the end of the command. For example, if you want to use Notepad to be your default HTML editor, type the following command: c:\windows\notepad.exe "%1"
OK, click Close, and then click Close again.
Reference: http://support.microsoft.com/kb/163606/en-us
Does it really work? I don't know. But try it, please.
this can be easily done via Tools->Options menu in Visual SourceSafe Explorer. How to: Change the Default Editor

RDLC file opens as text only not in the designer

I have an RDLC file that opens as text only (xml) not in the designer,
how can I force it back to default to open with the designer. (I need to go back and forth).
I swear I saw this on Stack already, but for the google of me I can't find it.
This problem comes when we change the default settings for any file type in visual studio.
Follow the steps given below to fix such issues:
You can right click on the file!
Select open with
Click on Report Designer.
Click on 'Set as Default'
Click OK
You should be all set now. It will now always open in Report Designer.
I just had this issue...
I resolved by adding a new Report to the project, which opened in the designer.
After the designer opened correctly, the existing reports also opened in the designer as not as XML.

Using the Visual Studio XML Editor on RDL files

When using Visual Studio to edit Reporting Services *.rdl files, the default designer used is from the "Microsoft SQL Server Reporting Services Designers" installed product.
When viewing the RDL code, this code is displayed as plain text and I want to take advantage of the XML Editor in visual studio.
Linking the *.rdl extension to the XML editor in Tools>Options>Text Editor>File Extension has the nasty side effect that while the rdl is now shown in the XML editor, the original report designer completely disappears.
Is there some other way to do this?
thanks
For any file you can click the arrow on the size of the open button in the open file dialog and select open with... From there you can select the XML editor. There are some other useful open with items in there as well.
You should be able to view and modify the XML by doing a view source on the RDL file. That way you'll still be able to use the designer when needed.
It would seem that the Report Designer for Visual Studio 2005 did not provide XML Editor support when you click "View Source"; where the 2008 version does.
While "solved", this is just a little inconvenient when you still need to develop RDL in 2005 compatibility mode.

Resources