Colloquial expansion of 这样. The extra 子 makes it softer and more conversational. Very common in spoken Taiwan Mandarin; mainland speakers use it too but often prefer plain 这样.
grammar
Works as an adverb modifying a verb (就这样子做) or as a predicate (事情就这样子了 "that's how things stand").