Skip to content

Latest commit

 

History

History
128 lines (103 loc) · 7.49 KB

File metadata and controls

128 lines (103 loc) · 7.49 KB

Commands Reference

← Back to Documentation Home

Complete reference for all commands in the Clarion Extension, generated from the extension manifest for v1.0.9.

Run commands from the Command Palette (Ctrl+Shift+P), context menus in the editor and Solution View, or the keyboard shortcuts listed below. In the palette every command is grouped under the Clarion: category, so typing clarion lists all of them — the tables below give the underlying command IDs rather than the palette labels. Settings are documented separately in Settings Reference.


Keyboard Shortcuts

Key Command When
F12 Go to Definition editor
Ctrl+F12 Go to Implementation editor
Shift+F12 Find All References editor
Shift+Alt+H Show Call Hierarchy — who calls this procedure, method or routine, and what it calls editor
F2 Rename Symbol editor
Ctrl+T Workspace Symbol Search anywhere
Ctrl+. Quick fixes & refactors (Surround With, Negate Condition, Flip IF/ELSE, Introduce EQUATE, Create Routine, missing INCLUDE/constants) editor
Ctrl+P Clarion: Quick Open — redirection-aware file search solution open
Ctrl+Shift+B Build Clarion Solution solution open
F5 Start Debugging (Clarion Debugger) solution open
Ctrl+F5 Run Without Debugging solution open
Ctrl+Shift+Alt+V Paste as Clarion String Clarion editor
Ctrl+Shift+I Add Method Implementation Clarion editor
Shift+Alt+→ / Shift+Alt+← Expand / Shrink Selection editor

Solution Commands

Command Description
clarion.openSolutionMenu Open Solution… — the main entry point: pick a detected .sln, browse, or choose from recents
clarion.openSolution Open Solution (browse)
clarion.openDetectedSolution Open a .sln auto-detected in the workspace folder
clarion.openSolutionFromList Open from the recent-solutions list
clarion.newSolution Create a new solution
clarion.closeSolution Close the current solution
clarion.forceRefreshSolutionCache Refresh Solution — re-parse .sln/projects
clarion.reinitializeSolution Full reinitialize of the solution environment
clarion.setConfiguration Set the active build configuration (Debug/Release/custom)
clarion.setActiveVersion Pick the active Clarion version (drives redirection/libsrc paths)
clarion.quickOpen Quick Open including redirection paths (Ctrl+P when a solution is open; falls back to VS Code's native Quick Open without one)
clarion.showExtensionStatus Show extension status (diagnostics for support)

Build & Run Commands

Command Description
clarion.buildSolution Build the solution (Ctrl+Shift+B)
clarion.buildSolutionDirect Build the whole solution in dependency order from the Solution View's solution node, without the "what do you want to build?" prompt
clarion.buildCurrentProject Build the project containing the active file
clarion.buildProject Build a specific project (Solution View context menu)
clarion.buildAllProjects Build every project
clarion.startDebugging F5 — launch the startup project under the Clarion debugger
clarion.runWithoutDebugging Ctrl+F5 — run the startup project
clarion.setStartupProject / clarion.clearStartupProject Choose which project F5/Ctrl+F5 targets
clarion.chooseStartupProject Choose Startup Project — pick the startup project from a list (also the Startup row in the Clarion Tools pane)
clarion.clearBuildResults Clear Build Results — remove the errors and warnings of the extension's last build from Problems. They are also cleared when another build task starts, so they never look current for a build they do not describe

Application (APP) Commands

Available in the Solution View for solutions with .app files under version control:

Command Description
clarion.generateApp Generate one application's source
clarion.generateAllApps Generate all applications
clarion.buildProjectFromApp Build the project that matches an .app node, without generating first
clarion.generateAndBuildApp Generate + build one project
clarion.generateAllAppsThenBuildSolution Generate all, then build the solution
clarion.exportAppToVersionControl / clarion.exportAllAppsToVersionControl Export APP(s) to TXA-based version control
clarion.importAppFromTextForSolution / clarion.importAllAppsFromTextForSolution Import APP(s) back from version control
clarion.toggleApplicationSortOrder Toggle APP sort order in the view
clarion.openInClarionIDE Open the file/app in the Clarion IDE

Editing Commands

Command Description
clarion.surroundWith Surround With… — wrap selection in IF / LOOP / CASE (also on Ctrl+.)
clarion.negateCondition Negate Condition (also on Ctrl+.)
clarion.flipIfElse Flip IF/ELSE (also on Ctrl+.)
clarion.pasteAsString Paste clipboard content as concatenated Clarion string literals (Ctrl+Shift+Alt+V)
clarion.addImplementation Add Method Implementation from a CLASS declaration (Ctrl+Shift+I)
clarion.createClass Create New Class wizard (generates .inc + .clw)

Project Structure Commands (Solution View)

Command Description
clarion.addSourceFile / clarion.removeSourceFile Add/remove a source file in a project
clarion.addMapModule Add a MODULE with a PROCEDURE to the MAP
clarion.addProcedureToModule Add a PROCEDURE to an existing MODULE
clarion.addProcedureFromMap Add a PROCEDURE from the MAP
clarion.navigateToProject Jump to a project in the view
clarion.copyFilePath / clarion.copyRelativePath Copy the file's full/relative path
clarion.openContainingFolder Reveal the file in Explorer

View Commands

Command Description
clarion.structureView.filter / clearFilter Filter the Structure View
clarion.structureView.expandAll Expand all Structure View nodes
clarion.structureView.enableFollowCursor / disableFollowCursor Toggle cursor-following in the Structure View
clarion.solutionView.filter / clearFilter Filter the Solution View

Diagnostics / Debug Commands

Command Description
clarion.setLogLevel Pick how much the extension logs (error … debug) for the run of a problem, without editing settings
clarion.debugSolutionHistory Inspect the recent-solutions memory
clarion.unresolvedReferencesReport Unresolved File References — a report of every INCLUDE and MEMBER in the solution whose file cannot be found, with MODULE names that have no source file and references inside OMIT/COMPILE listed separately. Each row opens the reference. Also a click on the Graph row in the Clarion Tools pane
clarion.debug.showFileRelationshipGraph Dump the MODULE/INCLUDE/MEMBER file graph (support/debug)
clarion.debug.showServerVersion Report the language server build actually running — the first thing to check when a fix appears not to have landed

Related Documentation