# Delete duplicate string characters in a array

**URL:** <https://forums.sketchup.com/t/delete-duplicate-string-characters-in-a-array/58376>\
**Category:** Ruby API\
**Created:** [December 27, 2017, 7:01pm UTC](https://forums.sketchup.com/t/delete-duplicate-string-characters-in-a-array/58376 "2017-12-27T19:01:05Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [December 28, 2017, 3:10pm UTC](https://forums.sketchup.com/t/delete-duplicate-string-characters-in-a-array/58376/13 "2017-12-28T15:10:38Z")

</div>

> [@Aerilius](#):
>
> Use consistently either only tabstops or only spaces but don’t mix them. Take also a look in your text editor’s settings and set it to use tabstop width = 2 and to replace tabstops by spaces.

…

> [@eneroth3](#):
>
> Sticking to spaces only is the safest and most editors have a setting for this.

…

* * *

> **I explained this to Dave in his other thread, \*\*\`23\` days ago\*\*, along with a pretty picture ...**
>
> I explained this to Dave in his other thread, **`23` days ago** , along with a pretty picture …  
> …
> 
> > [@Count sub-components with the definition "TOTO"](https://forums.sketchup.com/t/count-sub-components-with-the-definition-toto/56078/30):
> >
> > > [@Count sub-components with the definition "TOTO"](https://forums.sketchup.com/t/count-sub-components-with-the-definition-toto/56078/29):
> > >
> > > I use “ **Notepad ++** ” how to adjust the indentation in automatic mode?
> > 
> > ## **Settings** (menu) \> **Preferences…** (dialog) \> **Language** (panel)
> > 
> > ## **Tab Settings** (group) \> **ruby** (choice)
> > 
> > ## 1. uncheck “Use default value”
> > 
> > ## 2. set “Tab size” to **2**
> > 
> > ## 3. check “Replace by space”
> > 
> > > You can also switch on “Auto-Completion” but you may need to get an autocomplete xml file for Notepad++. @tt_su made one at one time. You may be able to use the stubs at the SketchUp GitHub repo: \> [GitHub - SketchUp/ruby-api-stubs: Auto-generated stubs for the SketchUp Ruby API. Useful for IDE intellisense and auto-complete.](https://github.com/SketchUp/ruby-api-stubs)  
> > > (_This is a complex issue and there are other threads on this. We are going too far off-topic as it is._)
> > > 
> > > **Notepad++ has it’s own forums where you should ask questions:**  
> > > **[Home | Notepad++ Community](https://notepad-plus-plus.org/community)**
> > 
> > ![image](https://global.discourse-cdn.com/sketchup/original/3X/0/d/0d9e5a0f4c3a490a1bc3ac50049b4befcb2d0245.png)

---

_[View the full topic](https://forums.sketchup.com/t/delete-duplicate-string-characters-in-a-array/58376)._
