0
我在Node模塊中有很多目錄路徑,我想在IntelliJ \ WebStorm(或任何其他IDE)中完成代碼。如何改進節點中的路徑
下面是我目前如何做的一個例子。它不給我代碼完成,但至少我不必輸入整個路徑:
export const sharedFolder = assetServerFolder + 'Shared/';
export const sharedTsFolder = sharedFolder + 'Scripts/App/Ts/';
export const sharedImagesFolder = sharedFolder + 'Content/Images/';
有沒有人有更好的方法?
感謝。我曾考慮將它們轉換爲路徑對象。但是,上下文是Windows和Linux上的Grunt配置對象,'/'可以正常工作。 這些都不會讓我在IDE中完成代碼。 – moefinley