Reputation: 631
So I work in a team that predominantly uses VSCode for the front-end work, I use Intellij myself as that's what I'm comfortable with. Issue is that when I go to format the code using Intellij it adds an initial indent to the code within <script>
and <style>
tags, it's not the worlds biggest issue - just a bit of a pain in the arse.
Their code would look like this:
<script lang="ts">
import { Component, Prop, Vue } from 'vue-property-decorator';
@Component
export default class CollapsibleSection extends Vue {
@Prop() public index: any;
@Prop() public value: any;
public isActive() {
return this.index === this.value;
}
}
</script>
My code would look like this:
<script lang="ts">
import {Component, Prop, Vue} from 'vue-property-decorator';
@Component
export default class CollapsibleSection extends Vue {
@Prop() public index: any;
@Prop() public value: any;
public isActive() {
return this.index === this.value;
}
}
</script>
Upvotes: 1
Views: 451