I am creating custom code snippet templates using DevExpress' CodeRush.
Is there anyway for me to be able to see available Templates through Intellisense so I don't have to memorize the names of all of the templates that I want to create?
You can use the CodeRush Training tool window for this purpose. Just dock it to the appropriate position (e.g. to the left side of the Visual Studio IDE) and see what code snippet templates it suggests. The window is context sensitive, so only appropriate code templates suggestions are made. I assume that after some time you will remember all useful templates you will work with.
What I ended up doing was I created visual studio snippets with the same name as the CodeRush templates in question. This allowed me to have the intellisense popup when I started to type the name of the template (b/c Visual Studio thought I was using a snippet) and then I can just hit the hotkey to use the CodeRush template.
Related
I want to write an extension on dgml file. Code map of Solution in visual studio.
How do I plug-in my code on a context menu of links shown in the diagram
I'm uncertain if there are any extensibility points build into the dgml editor, but you can certainly add menu items to the "Architecture" drop down menu item with a VS extension built with the Visual Studio SDK.
You'll want to read up on developing Visual Studio extensions, so that you are familiar with how menu items (also referred to as commands) are added to the VS IDE. Also, there are two categories of windows you can display in Visual Studio. Tool Windows, and Document Winodws. You'll need to figure out which type fits your particular requirements. Generally speaking if your underlying data is stored in a file, you'll most likely want to implement a document window (also known as a custom editor or designer). For example, the window displayed after selecting "Generate Code Map for solution" is a custom designer for .DGML files.
Below are a few links to get you pointed in the right direction.
Visual Studio SDK
Create an extension with a menu command
Create an extension with a tool window
Walkthrough: Create a custom editor
VSSDK Extensibility Samples (github)
Sincerely,
I would like to know whether it is possible to add buttons to a particular document library's column when a new item is created. I am working on SharePoint without using any development tools like SPD and Visual Studio.So, is there any way to use JavaScript to achieve this? Because, if it is done using java script I can add the java script code to a content editor and get the desired functionality.
What are the any/other ways to achieve this functionality by coding in visual studio?
Thanks
You might be able to achieve it with JavaScript as you suggest. However, don't do it. SharePoint is a complicated product with very complicated means for displaying lists. Don't try to hack it, rather use the appropriate tools (i.e. Visual Studio and/or SharePoint Designer).
To achieve what you want, you will have to create a custom field type definition and an appropriate XSLT rendering template. However, this is both quite complicated. I would recommend either creating a custom list item menu action or a custom button in the ribbon.
Using Visual Studio you have several options. I expect you need to add buttons to the list form (Edit or Display). You can:
create custom ribbon buttons. - The most standard way.
create your own field with the button you need and use this column in the list. Little bit complicated. Can be used in more lists.
create your own Editform for your content type or list. - The most complicated way but with the most possibilities.
I am pretty new at MS Dynamics CRM and trying to learn all development process by myself.
I customized a solution into MS Dynamics CRM by using the Solutions segments and published it. But there wasn't any development process. I want to change the existing button's codes. For example I want write a Select statement into 'New' button. Also I want to create a custom button and write some sample codes into it. How can I do that? I already download and install Ribbon Workbench but it doesn't give me these options (writing code samples etc.).
Should we do this into Visual Studio 2008? If we do how can I add the solution's code into there?
You are going to be using JScript in ribbon buttons. There are a lot of samples on the web for doing this. You should use a ribbon editor to speed things up.
The only tricky part is referencing your WebResource from the ribbon. You'll want to use the $webresource: notation as this example shows. You may want to check out the Visual Ribbon Editor.
How to edit and save back the default tridion template building blocks say for Ex(Default Finish Actions) provided by SDL?
Where can i found the soucre of default TBB's? After locating and editing the TBB's, how to save back in TCM?
Editing default templates provided by SDL is not supported. They are stored in DLL and there's no way you can customize it. Maximum you can do is to disable some of the templates from being created. Alternatively you can can create your own set of default templates.
You can use the Template Builder to assemble and (test) run Compound Templates (Page and Component Templates). You can access the Template Builder from the Tools tab in the Ribbon.
The default TBBs should not be changed.
.NET TBBs are either C# fragments with the code directly accessible, or classes that implement the ITemplate interface.
Please see the following blog post to get you started:
http://www.createandbreak.net/2011/11/template-building-blocks-via-net.html
The code for (an older version of) most of the Default Template Building Blocks can be found on the Tridion forum (http://forum.sdltridion.com).
(I don't have access anymore, but maybe somebody can edit my answer and provide the link)
As others have said though, you risk getting into support trouble if you simply modify and replace them. It might be better to:
take the code from the forum as a starting point
create your own variant, making the modifications you need
compile this into a new TBB
replace the standard TBB in the Default Finish Actions with your own variant
That way you can accomplish most things, without risking support problems. When they doubt whether you broke is, you can just swap out your own variant for the original and prove them wrong.
I've been looking hard to find a web page editor that can let me visually edit an already-designed asp.net web form page. for the whole period, I've made my page designs with Dreamweaver (now I'm using Dreamweaver CS4) and transfered my designs to Visual Studio 2010 to make asp.net pages from that template. Table editing feature for web forms in Visual Studio is really annoying and by trying to change a column width, the table structure is corrupted and VS decides to change everything on that table (compare it with Dreamweaver which only changes those two columns which their border is changed instead of the whole columns of that table).
Unfortunately Dreamweaver does not recognize the asp.net tags syntax and because of that it can not properly render them in design mode. I want to know if you know any tool (preferably non-Microsoft tool) that can let me open an asp.net web form in it and edit the page elements visually without side effects that Visual Studio causes to my page design. (I use HTML tables for arranging my page elements.)
By the way I looked at this link:
http://en.wikipedia.org/wiki/List_of_HTML_editors
but after opening all the visual editors web pages, I did not find any tool that supports ASP.net tags.
Is there a particular reason that though you are working on a Microsoft platform that you don't want to use a Microsoft editor?
MS provides two free tools that may help you:
Visual Studio Express
Web Matrix
Also, I highly recommend using CSS classes to set widths on ASP.NET generated tables/columns. (Rather than using the styling attributes for those ASP.NET controls.)
Hope this helps.
you can use AjaxControlToolkit.HTMLEditor.Editor.
Put the DLL in your project and than put in the page, than you can edit.
Create some logic to view and edit with some permission, and your page will have content editable.