Daniel Grunwald
0f3a0732fb
Snippets: make ${Caret} work as expected when ${Selection} isn't used.
13 years ago
Daniel Grunwald
ab95b18a3f
Refactored parser service.
13 years ago
Daniel Grunwald
d38eb13e71
AnalyticsMonitorService: move to new services infrastructure
14 years ago
Daniel Grunwald
2fc9ff16e3
Fixed snippet options.
14 years ago
Daniel Grunwald
7aea1ca75e
Rewritten ICSharpCode.Core.Properties:
...
- The meaning of "Get" is no longer overloaded, GetList and NestedProperties are now seperate methods.
- "Get" and "GetList" no longer cause the default value to be written into the properties container.
- Use DataContractSerializer instead of XmlSerializer.
14 years ago
Daniel Grunwald
e9fd1864e1
Adjusting SharpDevelop to new type system (unresolved/resolved split).
14 years ago
Siegfried Pammer
d579a21ab7
add using-snippet
14 years ago
Siegfried Pammer
3da54df351
finish CreateProperties code generator
14 years ago
Daniel Grunwald
f31bca1de7
newNR: fixed build errors in AvalonEdit.AddIn and CSharpBinding.
14 years ago
Daniel Grunwald
a2add0b62e
WIP
14 years ago
Siegfried Pammer
045f41469c
added ctor snippet for VB and fixed VB-specific issues in the InsertCtor*-logic
15 years ago
Siegfried Pammer
5679ccc74a
reset ctor snippet to version with public; do not generate public or static in the code
15 years ago
Daniel Grunwald
f5780c2944
Apply new file headers
15 years ago
Siegfried Pammer
5afefddcfb
InsertCtor inserts static ctor in static class
15 years ago
Siegfried Pammer
6a89a4470c
moved AnchorSnippetElement integration to AnchorSnippetElementProvider
15 years ago
Siegfried Pammer
6f0dacc881
- created DefaultSnippetElementProvider for standard SnippetElements
...
- introduced SnippetInfo and changed signature of ISnippetElementProvider
- added SnippetAnchorElement
- refactored InsertCtor to insert ctor body at the same time as the dialog
15 years ago
Daniel Grunwald
63a5936468
When saving code snippets, remove any completely empty snippets (might have been added accidentally by clicking into the grid's empty row).
15 years ago
Daniel Grunwald
d5fe7a31e5
Fix http://community.sharpdevelop.net/forums/t/11768.aspx by making sure the CodeSnippet properties cannot be null.
15 years ago
Daniel Grunwald
b271d6b2a9
Simplify SnippetManager.LoadGroups, hopefully fixes http://community.sharpdevelop.net/forums/t/11768.aspx
15 years ago
Siegfried Pammer
8ba3ec3ac8
added keyword mapping for VB snippets
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6304 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
21511453dd
fixed isUserModified detection in CodeSnippet
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6301 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
6ebd91edac
Track feature use in UDC: snippets, NewLineConsistencyCheck, ClassMemberBookmark menu.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6298 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
10f8d47731
fixed insertion of text in "surround with"
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6219 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
d95e218172
Added basic classes for editor Context actions (ReSharper-like "bulb").
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6162 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
9ef1561394
only display snippets that are mapped to a currently available keyword
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6150 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
a245aa9cb9
save only changed snippets in the SharpDevelop options
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6148 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
c9a780068a
Make sure buttons have the correct size (using a style with MinWidth=75 and Padding=9,1).
...
Use UniformGridWithSpacing for layout of OK and Cancel buttons (these should have the same size even in languages where the OK button needs more space than 75 pixels).
Option Panels: give check boxes a bit more space
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6147 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
e89b10cea5
added code snippets for Try-Catch and Using and Properties
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@6120 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
9385d688b7
Show only snippets with a ${Selection} in Ctrl+J list.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@6076 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
2868186abc
- added some code snippets for loops and conditional statements
...
- converted Exception template to VB
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@6073 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Siegfried Pammer
8671ab60c2
- added keywords to CC
...
- added some snippets
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/vbnet@6068 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
af3858a6e5
Renamed code snippet "props" to "prop", as the short property form is usually preferred.
...
Property with backing field is now "propfull", added "propg" for property with private setter. These names match Visual Studio names, to make switch to SharpDevelop easier.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5993 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
e8d33e6fb5
CompletionList - implemented ReSharper (and VS2010)-like Code completion:
...
- search by substring
- search by camel case: writing "fs" finds "FileStream"
- filtering the items (showing only the matching ones) and sorting them by quality
- the exact old behavior (with search by camel case added) can be turned on by setting CompletionList.IsSearchByStartOnly = true
TODO make the CompletionWindow size to content when the list is short - have to ask Daniel for the best way to do this
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5735 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
04fbe5ad03
Switch snippet code improved based on Daniel's advice.
...
TODO: now fully qualified names of enum fields are used in case labels, even though namespace is unnecessary when it is present in document's 'using' section (very common case - have to improve this).
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5718 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Martin Koníček
de1fefa9a9
Implemented switch snippet which inserts switch body dependent on switch condition. For enum condition prefills are enum cases. For non-enum condition inserts generic switch body with one case, like the old snippet.
...
TODO: make the code generation work for VB (using CodeGenerator), now C# switch is always inserted.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5710 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
79e8189c7c
Fixed SD2-1604 - Code completion does not learn commonly used items
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5676 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
15 years ago
Daniel Grunwald
71c5d4d290
Move ISnippetElementProvider to ICSharpCode.SharpDevelop.Editor.AvalonEdit.
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5565 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
7dfe0ac44a
added ISnippetElementProvider
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5561 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
2af09d613b
Fixed small selection bug in snippet completion window (Ctrl+J).
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5548 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
edd3fb4a0a
"Normalize" file headers.
...
Enable $Revision$ keyword expansion for all existing .cs files.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5529 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
98242a8a97
- added EntityType to IEntity
...
- refactored ParameterListComparer
- added SignatureComparer
- added IEditorUIService and IInlineUIElement
- updated some snippets
- added basic implementation of OverrideToStringMethod refactoring
- added ClassCodeGeneratorMenuBuilder
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5241 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
3c5585e0a2
- finished implementation of Ctrl+J snippets.
...
- added props snippet
- enhanced existing snippets
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5214 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Siegfried Pammer
002ffad912
- implemented Ctrl+J for new snippets
...
- removed code duplication in Profiler.cpp
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5202 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
82643cb089
Fixed layout of SnippetOptionPanel.
...
Removed unused EditTemplateDialog.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5072 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
d7cd0e58f7
Fixed build.
...
Expand snippets only when Tab is pressed.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5070 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago
Daniel Grunwald
4a85fa660c
Added snippet support to SharpDevelop (replaces 'code templates').
...
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5069 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
16 years ago