|
Code Manipulation/Optimizing? What Does That Mean?
Here's the answer:
You can "Cleanup" your Code with several different functions for better usage/overview.
To enumerate some:
- Automatic indentions for IF-Loops, Scripts and *Popup lines.
- Easy Commenting and UnCommenting of selected lines.
- Manually Indention of selected lines.
- Automatic remove of unwanted commented themeing lines before Release.
- Sorting of all settings on one vertical line for better readability/finding.
- Special treatment of *Shortcut and *Popup lines.
- You can also apply and remove all this features with one function!
Where are these methods:
You will find all in the MenuPoint "EDIT" under "Format Options" or via the MainToolbar Button "Recolor Syntax" in the DropDown-Menu. You cannot make anything wrong so test it, you also have Undo ;)
(Remove) Indentions & (Un)Commenting:
(Main Window)
To (Remove)Indent or mark a single line as Comments, just put your cursor in the desired line and press the "(Remove)Indent - (Un)Comment Buttons" on the left side of the window.
To (Remove)Indent or mark multiple lines at once as Comments, mark the lines (it's not needed that you start marking at the first place of the line, also it's not needed that you stop marking at the last place of the last line. Just make sure that the marks/selection covers somewhere all the lines you want to be affected), then you press the "(Remove)Indent - (Un)Comment Button" on the left side of the window.
Search In Files:
(Project/Snippet Bar)
You're able to search in files for a special string. The Search shows you the files and the folders where the string has been found. A Doubleclick on one of them will open the selected file and shows you the first occurance of the string in the file!
ContextMenu's:
In most if the File showing LSTM2 Elements you can use the Standard ContextMenu's, like in your Windows Explorer. RightClick of a File/Folder and you will see.
Window Info Trick:
(Multi Function Bar)
You can use the Window Info to see where your Litestep Elements (label,shortcut,vwm, ...) are placed on the screen (x + y coordinates, width, height, ...).
Free Floating Windows:
(Project/Snippet Bar & Multi Function Bar)
Press the "CTRL+Left MouseButton" to Drag the boxes outside of the window without Docking.
With a DoubleClick you can also Dock or Undock the boxes.
The OTS2 Theme Checking Tool:
Well, i think this is the first one ;)
It's displays possible problems with:
- Not defined "OTSMajorVersion", "OTSMinorVersion", "ThemeName" and "ThemeAuthor"
- *NetLoadModule, *NetInstallModule, !netreloadmodule and !netunloadmodule
- Old: LoadModule, !reloadmodule and !unloadmodule
- LSBox: *LoadModule and *WharfModule
- "Include" of not required files (like personal.rc,...) and use of Absolute Paths
- Hotkey
- Use of "PixMapPath" and definition of $ShortcutsDir$
- Use of already defined $Evars$ from "personal.rc" in the theme
What Could Happen During Check:
Since LSTM2 scans through all "included" files (include, Box-Files, Script-Files), they contain $Evars$ in the Path. LSTM2 tries to get the right ones by itself, but every theme is different, so if LSTM 2 fails, it will ask YOU to enter the Folder or $Evar$.
In one case you should choose the Folder, in another you should enter it by hand (Nothing really complicated though ;)) If you don't know, just click "Cancel" the OTS2 Check works although, but the referring "Includes" are NOT scanned :(.
↑
© by LS-Universe
|