Toggle betwen html and typescript files.
- navigate to an html file
- cmd+shift+p to run the extension command
Finally, watch as the corresponding typescript file for the html opens to the side.
- Have a good naming convention (Inspired by Angular Web Framework)
Example:
- home.component.html
- home.component.ts
- home.component.css/scss
For Angular projects, while in a html file trying to open a ts file, sometimes the spec.ts file will open instead.
Initial release of Relevant-Files
Command
- HTML<->TS : toggles between an html and typescript file.
No long required to start with 2 editors open.
Command Upate:
- goto -> htmlts : This command will switch between an html and typescript file.
- readme updates
- ->HTML : takes you to the relevant html file base on current file (must be in same folder)
- ->TS: takes you to the relevant typescript file base on current file (must be in same folder)
- ->SCSS: takes you to the relevant SCSS file base on current file (must be in same folder)
- ->CSS: takes you to the relevant CSS file base on current file (must be in same folder)
* ->createConfigFile : Creates a .relevantrc file to store all workspace file links
* ->createFileLink : Creates a link between the current file open and another provided by the user
* ->relevantLink : navigates the user to the linked file if available in relevantrc file
- fix: Fixed the issue of opening the same file in both text editors
- run the command "->createConfigFile" and select your workspace
- navigate and open a file you wish to create a link for.
- navigate to a file you want to link to and copy the FILE PATH. (/Users/projects/sites/site1/file1)
- now navigate to the file you want to add the link to.
- run the command "->createFileLInk" and paste the file path you copied in the last step
- run the command "->relevantLink" and expect to see the linke file open in the opposite editor
Enjoy!