You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/Editor.dd
+67-10Lines changed: 67 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -50,34 +50,91 @@ $(PRE
50
50
string
51
51
)
52
52
53
-
$(H2 More features)
53
+
$(H2 Code Completion and Navigation)
54
+
$(P Selecting "Open Language options" from the Visual D Menu will take you directly to the global options page
55
+
for code completion.
56
+
)
57
+
$(IMG_CENTER images/intellisense_options2.png)
54
58
59
+
This is where you can configure what happens if you want to see code completion.
55
60
56
-
You might want to check the following features:
57
61
$(UL
58
-
$(LI simple word-completion will show identifiers in the vicinity of the caret from the same buffer (default short-cut Ctrl-Space). If you press the short-cut again, identifiers from JSON files are also displayed.)
59
-
$(LI import statement completion: pressing Ctrl-Space in an import statement will complete the token from the files and folders available in the import directories.
62
+
$(LI Expansions from semantic analysis:
63
+
the semantic engine will try its best to figure out the current scope of the edited text and
64
+
find valid identifiers. If no matching identifier is found or if you trigger expansion again,
65
+
expansions from the text buffer or JSON browse information will be added.
66
+
)
67
+
$(LI Expansions from text buffer:
68
+
completion will show identifiers in the vicinity of the caret from the same buffer
69
+
(default short-cut Ctrl-Space). If no matching identifier is found or if you press the short-cut
70
+
again, identifiers from JSON files are also displayed.
71
+
)
72
+
$(LI Expansions from JSON browse information:
73
+
completion will show matching identifiers from the compiler generated JSON files. No information
74
+
about the current edit scope will be used.
75
+
)
76
+
$(LI Show expansion when: sets the trigger for showing the code completion popup. Using a mode
77
+
that displays completion more often also includes the other triggers, i.e. hitting Ctrl+Space is
78
+
always possible to display completions.
79
+
)
80
+
$(LI Show type of expressions in tool tip:
81
+
Display information about the hovered identifier in a tool tip.
82
+
)
83
+
$(LI Use semantic analysis for "Goto Definition":
84
+
goto definition (default short-cut F12) can either request the location of the definition of
85
+
a symbol from the semantic engine or takes information from compiler generated JSON files.
86
+
A successful build with JSON output enabled is necessary for the laytter. JSON files can also
87
+
be precompiled and placed into the directories given in the $$(DDLINK GlobalOptions,global options).
88
+
If there are multiple
89
+
definitions for the identifier at the caret position, the $(DDLINK Search,Search Window) will show up.
90
+
)
91
+
$(LI Use Alexander Bothe's D parsing engine:
92
+
Use the semantic engine that also powers Mono-D and D-IDE. It is more powerful than the
93
+
engine that is part of Visual D. You must have installed it from within the Visual D installer.
94
+
)
95
+
)
96
+
97
+
$(P Triggering completion an import statement will always complete the token from the files and folders available
98
+
in the import directories.
60
99
$(IMG_CENTER images/import_completion.png)
61
100
)
62
-
$(LI goto definition (default short-cut F12) takes information from compiler generated JSON files. A successful build with JSON output enabled is necessary for this function. JSON files can also be precompiled and placed into the directories given in the global options. If there are multiple definitions for the identifier at the caret position, the [wiki:Tour/Search Search Window] will show up.)
101
+
102
+
$(H2 More features)
103
+
104
+
You might want to check the following features:
105
+
$(UL
63
106
$(LI smart indentation will indent nicely after pressing Return. )
$(LI code snippets: let's you select from a list of snippets, some of them allowing token replacements (default shortcut Ctrl-K Ctrl-X). You can also insert code-snippets by writing its shortcut, then pressing the key for command "Edit.!InvokeSnippetFromShortcut". For example, shortcut "for" yields
109
+
$(LI code snippets: let's you select from a list of snippets, some of them allowing token
110
+
replacements (default shortcut Ctrl-K Ctrl-X). You can also insert code-snippets by writing its
111
+
shortcut, then pressing the key for command "Edit.!InvokeSnippetFromShortcut". For example,
112
+
shortcut "for" yields
67
113
$(IMG_CENTER images/codesnippet.png)
68
114
)
69
-
$(LI parameter info tooltips (default short-cut Ctrl-Shift-Space) showing function prototype and highlighting current position in argument list. As with "goto definition" this feature relies on JSON files being generated.
115
+
$(LI parameter info tooltips (default short-cut Ctrl-Shift-Space) showing function prototype and
116
+
highlighting current position in argument list. As with "goto definition" this feature relies
117
+
on JSON files being generated.
70
118
$(IMG_CENTER images/parameterinfo.png)
71
119
)
72
-
$(LI show scope in status line: to avoid navigating through a larger file to figure out what class the current function belongs to, command "VisualD.!ShowScope" displays the class, function, etc. at the caret position:
120
+
$(LI show scope in status line: to avoid navigating through a larger file to figure out what
121
+
class the current function belongs to, command "VisualD.ShowScope" displays the class, function,
122
+
etc. at the caret position:
73
123
$(IMG_CENTER images/showscope.png)
74
124
This command is also accessible from the Visual D menu, but it is best to assign it to some keyboard shortcut.
75
125
)
76
126
$(LI Outlining of curly braced declarations and statements and multi-line comments
77
127
$(IMG_CENTER images/outlining.png)
78
-
Automatic outlining can be disabled on the global configuration page "Tools->Options->Text Editor->D->Colorizer". Using command "Outlining->Collapse to Definitions" will enable it for the current text buffer.
128
+
Automatic outlining can be disabled on the global configuration page
129
+
"Tools->Options->Text Editor->D->Colorizer". Using command "Outlining->Collapse to Definitions"
130
+
will enable it for the current text buffer.
79
131
)
80
-
$(LI show the clipboard ring in a context menu to paste from. This operation is invoked by the "Edit->Cycle Clipboard Ring" command.
132
+
$(LI Two commands are added to the "Edit->Outlining" menu: "Collapse unittests" will fold away
133
+
unittest blocks that might obfuscate the actual code if they become excessive. "Collapse disabled code"
134
+
will hide code blocks actually not compiled due to version or debug conditions helping you concentrate on
135
+
the active code.)
136
+
$(LI show the clipboard ring in a context menu to paste from. This operation is invoked by
0 commit comments