Difference between revisions of "Editor SlickEdit"

From Apache OpenOffice Wiki
Jump to: navigation, search
m (minor wording tweak)
(added how to set up editor to handle proper code format.)
Line 1: Line 1:
Although not open-source nor free as in beer, SlickEdit is a powerful commercial code editor with a large number of followers.  It is especially well suited for a large-scale C/C++/Java project where the number of source files easily exceeds thousands.  This page aims to describe how to set up SlickEdit for optimal hacking experience of OpenOffice.org codebase.
+
Although not open-source nor free as in beer, SlickEdit is a powerful commercial code editor with a large number of followers.  It is especially well suited for a large-scale C/C++/Java project where the number of source files easily exceeds thousands.  This page aims to describe how to set up SlickEdit for optimal hacking experience of OpenOffice.org (OO.o) codebase.
  
To be continued...
+
= Editor setup =
 +
== Code format ==
 +
The OO.o project mandates [[Cpp Coding Standards/Code Format| 4-space indentation & use of whitespace characters for indentation]] for newly-submitted code. But the legacy code mostly uses tab characters for indentation.  So, you need to set up SlickEdit to properly handle this format.
 +
 
 +
Go to '''Tools > Options > File Extension Setup...''', and select the extension of '''c'''.  Select the '''Indent''' tab page and set the following options:
 +
 
 +
* Change the '''Indent style''' to '''Syntax indent''', and set the number to '''4'''.
 +
* Set the '''Tabs''' setting to '''+3''', which sets the tab spacing to every 3 characters.
 +
* Uncheck the '''Indent with tabs''' check box if checked.
 +
 
 +
The '''c''' extension also covers other extensions used commonly for C/C++ sources files, such as '''cpp''', '''cxx''', '''h''', '''hpp''', and '''hxx''', so you don't need to set these options for all of these extensions individually.
  
 
[[Category:Developer Tools]]
 
[[Category:Developer Tools]]

Revision as of 14:55, 5 January 2007

Although not open-source nor free as in beer, SlickEdit is a powerful commercial code editor with a large number of followers. It is especially well suited for a large-scale C/C++/Java project where the number of source files easily exceeds thousands. This page aims to describe how to set up SlickEdit for optimal hacking experience of OpenOffice.org (OO.o) codebase.

Editor setup

Code format

The OO.o project mandates 4-space indentation & use of whitespace characters for indentation for newly-submitted code. But the legacy code mostly uses tab characters for indentation. So, you need to set up SlickEdit to properly handle this format.

Go to Tools > Options > File Extension Setup..., and select the extension of c. Select the Indent tab page and set the following options:

  • Change the Indent style to Syntax indent, and set the number to 4.
  • Set the Tabs setting to +3, which sets the tab spacing to every 3 characters.
  • Uncheck the Indent with tabs check box if checked.

The c extension also covers other extensions used commonly for C/C++ sources files, such as cpp, cxx, h, hpp, and hxx, so you don't need to set these options for all of these extensions individually.

Personal tools