There is no set rule for this, it all depends on the layout of your entire work.
If it is a calligraphy work, repetition will be a big shortcoming. Therefore, even if there are the same characters or the same strokes, there must be some differences. This is the same word "Zhi" in the so-called "Preface to the Lanting Collection". There are indeed a variety of writing methods to make the whole work smart and not dull.
Similarly, if every word needs to be connected virtually, you should also pay attention to the changes in strokes.
If you are just writing from left to right, you will usually draw the line to the lower left when you are finishing the stroke briefly. If you are writing continuously, the virtual link will be upward to the right, so that you can Let the writing flow.