Using the Map Editor
Map Editor
Generator includes a Map Editor that makes it very easy to create and manage your own CodeSmith Generator Map lists. Generator also ships several of the most common mapping scenarios and it's output is in a familiar XML format allowing the developer community to contribute and share maps they create as well through a new map file gallery at the CodeSmith community.
Opening the Map Editor
You can open the Map Editor from the Generator menu.
User interface elements
The section below will walk you through the various user interface elements of the Map Editor.
Name: The map name is also the file name so consider choosing a name that is fairly descriptive of what the map's intent is. This drop down allows you to edit and view previously defined map files.
New File: Clicking this button allows you to create a new mapping file.
Open File: Clicking this button will open a Windows Explorer Browse dialog and let you pick a mapping file that exists anywhere on your hard drive.
Save Copy: Creates a duplicate map file of the currently selected map file.
Description: A description field of what the maps intent is for.
Return Key: The return key check box indicates whether or not to return the original key from the map if the key is not found within the map. This is important because there can be many situations where there might not be an entry for the key and it's value, but you would still like the key returned instead of null.
Case Sensitive: The Case sensitive check box determines whether or not to search for the key and consider case sensitivity. Often, word dictionaries do not require case sensitivity since most use keys that are unique by name.
Find More: Launches a browser session to browse the online gallery of community collaborated maps.